-
Notifications
You must be signed in to change notification settings - Fork 7
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
Why the double useMemo? #16
Comments
ah ok, the array+object is to allow both Another observation: how about just exporting the static values, and a function that you can call on the server to set |
When would we need to explicitly set |
Honestly, it's probably an overuse of |
Ah, I didn't get around to commenting yet - actually for hydration it should be possible to turn on |
I don't understand this code: https://github.com/alex-cory/use-ssr/blob/88e408cffbcff17a0bad63d1c86b9f00d110862c/useSSR.ts#L51
First it creates
useSSRObject
, which seems like it should be sufficient, and then it creates an array of the values that also looks likeuseSSRObject
?Also, all these values are static, so they could just be exported from a module without all the hooks?
The text was updated successfully, but these errors were encountered: