Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Suspense support #3

Open
kosich opened this issue Aug 13, 2020 · 0 comments
Open

React Suspense support #3

kosich opened this issue Aug 13, 2020 · 0 comments

Comments

@kosich
Copy link
Owner

kosich commented Aug 13, 2020

Enable Suspense for SSR

Something like

const App = () => {
  // $Suspense is a reactive element
  <$Suspense fallback={ <span>loading...</span> }>
    { stream$ }
  </$Suspense>
}

--

TODO: Consider approach suggested by @joshribakoff in #4 (comment) with BehaviorSubject

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant