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

support for static site generation (server-side rendering) #408

Closed
joelhooks opened this issue Sep 27, 2022 · 3 comments
Closed

support for static site generation (server-side rendering) #408

joelhooks opened this issue Sep 27, 2022 · 3 comments

Comments

@joelhooks
Copy link

Currently when you are in a server environment the provider replaces all of the children with null or the loading fallback.

It would be fantastic if the Provider and the hooks would noop when the indexeddb wasn't available in the environment. Maybe as an option.

I'm going to look at the code more in depth to see if I can supply a PR, but wanted to understand "why" it behaves as it does more.

@harshzalavadiya

This comment was marked as outdated.

@harshzalavadiya
Copy link
Member

harshzalavadiya commented Sep 28, 2022

@joelhooks new v2.0.0 should make very easy to access example here

@joelhooks
Copy link
Author

joelhooks commented Sep 28, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants