- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 191
test(rsc): add SSR thenable workaround in examples #591
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
test(rsc): add SSR thenable workaround in examples #591
Conversation
React.use SSR bug workaround
      | Oh, so that's what I was experiencing lately 😄 I was surprised by some weird behavior where promise resolved to a different value for a moment. However, it seems for me that this fix doesn't solve the issue? https://github.com/pawelblaszczyk5/vite-rsc-experiments/tree/main/apps/error-boundary Do you have any ideas? Also, surprised a bit by difference between experimental/canary - it's fixed in React experimental channel for me, but broken in canary. | 
| There is  This should be simply: const SsrUseWorkaround = (props: React.PropsWithChildren) => props.children;The original React issue facebook/react#33937 reproduces on all channels. Though there might be some variance on how it reproduces depending on component tree and maybe some scheduling, I think the underlying issue is on React. | 
React.use SSR bug workaround
Description
React.useinsideReact.lazy-ed component returns otherReact.usevalue on SSR facebook/react#33937TODO