You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 20, 2024. It is now read-only.
We got a hydration error when showing other variants than the first one on the first visit on site. This is due to that the server-side code that contains active variation to be the first index and then immediately after the variant changes.
I used v-if to conditionally render the visible component. Using v-show fixes this error but then the first variant will flash at the first load. Is it possible to trigger variant selection before Nuxt creates HTML code in the server? Right now we have fixed this by wrapping these components inside <client-only> tags, but this shows a blank area (or placeholder) for the area where the component should appear.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We got a hydration error when showing other variants than the first one on the first visit on site. This is due to that the server-side code that contains active variation to be the first index and then immediately after the variant changes.
I used
v-if
to conditionally render the visible component. Usingv-show
fixes this error but then the first variant will flash at the first load. Is it possible to trigger variant selection before Nuxt creates HTML code in the server? Right now we have fixed this by wrapping these components inside<client-only>
tags, but this shows a blank area (or placeholder) for the area where the component should appear.The text was updated successfully, but these errors were encountered: