Replies: 6 comments 2 replies
-
Hi @matepapp, I don't know of any NextJS + ReactFire samples yet. It looks like Suspense with SSR is available in Concurrent Mode now, so I think it should be possible to use all of ReactFire's features with Next. If you know of any docs that show how to work with NextJS + Suspense/Concurrent Mode, please send them our way! Even if you can't use Suspense/Concurrent Mode, Once we get a better idea of what the Suspense/Concurrent Mode server rendering story looks like, we'll make sure ReactFire supports it and it is documented. |
Beta Was this translation helpful? Give feedback.
-
Thanks, @jhuleatt! 🙌 Actually, first I tried with |
Beta Was this translation helpful? Give feedback.
-
@matepapp could you show me that cryptic error. I am trying it with nextjs too. It worked until today and now it is giving me an invariant violation. Also: |
Beta Was this translation helpful? Give feedback.
-
To be honest, I just put the |
Beta Was this translation helpful? Give feedback.
-
It is Possible to use React concurrent mode in next.js with all the experimental stuff. Here's the Snippet: install react@experimental react-dom@experimental as deps and then in config: in next.config.js module.exports = {
reactStrictMode: true,
experimental: {
reactMode: 'concurrent', // or you can make it blocking
},
}
``` and make sure to wrap your application in NoSsr Component from 'react-no-ssr' or one with same api/purpose. |
Beta Was this translation helpful? Give feedback.
-
Will try today. But can a page be wrapped in Suspense? |
Beta Was this translation helpful? Give feedback.
-
Hey! 👋
Thanks for the project! Unfortunately, I couldn't find any examples with NextJS. Is it possible to use, or integrate it into a NextJS project?
Beta Was this translation helpful? Give feedback.
All reactions