-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Nextjs SSR example #46
Comments
Great idea. It's not on my prio list at the moment, so contributions would be very helpful for this. |
Did either of you happen to do this yet? I'm trying to get it working now and... Well, let's just say it's not.
etc. |
Looking into this, I think that perhaps firestorter or even mobx wouldn't make sense with next.js. I found this article which explains how you could use mobx in next, but it feels clunky to me. Zeit's swr seems capable of listeners and such as well. Working with small functional components with swr should yield the same result as working with firestorter and mobx. By this I mean that you could set up a new To make it "smart" it'd have to be an effect with counters to check if anyone is observing though, so something could be done there. But if all that is needed is a check to see if anyone is listening to the data I wouldn't use mobx for that. It's a pretty large library for something that could be solved with useEffect. The obvious downside is that you basically have to use hook. But that doesn't seem avoidable anymore anyway so... Why not. I hope my ramblings help anyone. If not, well, at least I got to ramble. |
I'm also getting the Just want to say I enjoyed your ramble. |
This is not a real "issue", but rather a suggestion: a minimal example of how to use firestorter with nextjs and SSR would be awesome ;)
The text was updated successfully, but these errors were encountered: