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

Warning: useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://fb.me/react-uselayouteffect-ssr for common fixes. #5466

Open
pahaz opened this issue Nov 11, 2024 · 0 comments

Comments

@pahaz
Copy link
Member

pahaz commented Nov 11, 2024

Warning: useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://fb.me/react-uselayouteffect-ssr for common fixes.
[1]     in TrackingProvider (at _app.tsx:491)
[1]     in Context.Provider (at Provider.tsx:278)
[1]     in PostMessageProvider (at _app.tsx:490)
[1]     in Context.Provider (at TasksContextProvider.tsx:183)
[1]     in TasksContextProvider (at _app.tsx:443)
[1]     in TasksProvider (at _app.tsx:489)
[1]     in Context.Provider (at LayoutContext.tsx:55)
[1]     in LayoutContextProvider (at _app.tsx:488)
[1]     in Context.Provider (at _app.tsx:484)
[1]     in Context.Provider
[1]     in Context.Provider
[1]     in LocaleProvider
[1]     in Context.Provider
[1]     in Context.Consumer
[1]     in SizeContextProvider
[1]     in Context.Provider
[1]     in ProviderChildren
[1]     in Context.Consumer
[1]     in LocaleReceiver
[1]     in ConfigProvider (at _app.tsx:483)
[1]     in Fragment
[1]     in MyApp (at FeatureFlagsContext.tsx:157)
[1]     in Context.Provider (at FeatureFlagsContext.tsx:106)
[1]     in FeatureFlagsProviderWrapper (at FeatureFlagsContext.tsx:119)
[1]     in Context.Provider
[1]     in GrowthBookProvider (at FeatureFlagsContext.tsx:118)
[1]     in FeatureFlagsProvider (at FeatureFlagsContext.tsx:156)
[1]     in withFeatureFlags(MyApp) (at organization.tsx:212)
[1]     in Context.Provider (at organization.tsx:152)
[1]     in OrganizationProvider (at organization.tsx:211)
[1]     in withOrganization(withFeatureFlags(MyApp)) (at auth.tsx:211)
[1]     in Context.Provider (at auth.tsx:157)
[1]     in AuthProvider (at auth.tsx:210)
[1]     in withAuth(withOrganization(withFeatureFlags(MyApp))) (at apollo.tsx:232)
[1]     in Context.Provider
[1]     in ApolloProvider (at apollo.tsx:231)
[1]     in withApollo(withAuth(withOrganization(withFeatureFlags(MyApp)))) (at intl.tsx:152)
[1]     in Context.Provider (at intl.tsx:115)
[1]     in Context.Provider
[1]     in IntlProvider (at intl.tsx:114)
[1]     in Intl (at intl.tsx:151)
[1]     in withIntl(withApollo(withAuth(withOrganization(withFeatureFlags(MyApp)))))
[1]     in Context.Provider
[1]     in Context.Provider
[1]     in Context.Provider
[1]     in Context.Provider
[1]     in AppContainer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant