-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
fix: stop useNetworkConnectivity from causing hydration errors. #255
fix: stop useNetworkConnectivity from causing hydration errors. #255
Conversation
Multiple fixes + SPA minimal mode
## @remix-pwa/cli 1.2.5 (2024-08-11) ### Bug Fixes * **cli:** added new `--dev` flag to the `upgrade` command - for updating to latest `dev` candidate d4f4414
## @remix-pwa/sw 3.0.9 (2024-08-11) ### Bug Fixes * **sw:** added `matchOptions` for adding querying options to cache operations c87e507
## @remix-pwa/worker-runtime 2.1.4 (2024-08-11) ### Bug Fixes * **worker-runtime:** added minimal support for runtimes in Remix SPA mode 6dd95e6
## @remix-pwa/sync 3.0.4 (2024-08-11) ### Dependencies * **@remix-pwa/sw:** upgraded to 3.0.9
@ShafSpecs are you able to have a look at this? |
Sorry, just doing so. For some reason, I don't get emails about actions in this organization 🥲. I need to fix that, my bad |
After the merge, you can check out your fix by installing the Sorry, I'm not with my PC this week and can't check it out fully. Once I'm able to, I would push to latest. And thx for the PR ❤️! |
I mean |
Description:
We encountered hydration errors like:
Solution:
The issue was resolved by rewriting the hook to use
useSyncExternalStorage
, ensuring consistency between server and client rendering.Request for Review:
The change has been tested and eliminates the hydration errors. Looking forward to your feedback and hoping for a quick merge.