Props based on route generate hydration missmatch
I want to do something like the above. My issue is that I get a missmatch because confi is empty on server and filled in client.
Is there a way to have it filled also on server?
4 Replies
as it is based on a JSON, it should be filled either way.
try without the
Tool
component and just render the param. Most likely an issue inside the componentThe issue is that the component needs to v-model the json so I do:
Which is probably what causes the issue
I'll need to rethink this step
so you'd rather need
const config = ref(tools[tool_slug])
and then use that ref with the initial value for a v-model or similar
no onBeforeMount neededAmazing, thanks