Is there a good way to detect if hydration ends #1793
Unanswered
snake-py
asked this question in
Help & Questions
Replies: 1 comment 5 replies
-
You currently need your own logic for that. Ideas? How about a new setting? // pages/+config.js
export default {
// Adds the class "hydrated" to the body tag once hydration is finished
onHydrationEndClass: 'hydrated'
} |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a submit button, which should only be enabled once hydration is done. Is there a good way to detect this? Or do need to do my own logic for it using +onHydrationEnd.ts?
Beta Was this translation helpful? Give feedback.
All reactions