-
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
Hydration errors 2 #191
Hydration errors 2 #191
Conversation
@@ -73,6 +75,13 @@ const { data: pprSections } = await useAsyncData(`ppr-sections-${locale.value}`, | |||
return queryContent().where({ _locale: locale.value, _path: { $contains: 'ppr/sections' } }).find() | |||
}) | |||
|
|||
// srr safe media query | |||
watchDebounced(width, () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting, for hydration issues?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, initial render the ref is false on server and true on client so it causes a mismatch. This way the value is the same for server/client and still updates when the screen width changes, used debounced watcher to update once the screen width ref changes and to not fire multiple events if the screen changes width after mount.
@deetz99 I've deployed main back to dev.. there are some 404 screens we keep seeing with login and logout |
Okay thanks, I'll need to add in the login/logout redirects then. Do you know if the signin/bceid, signin/bcsc and signin/bceid are in use at all ? |
Yes they all are |
Thank you |
fixed order of bg images on ppr marketing page causing hydration errors