Viridian
Explore posts from serversLayout transitions not working between pages
@kapa.ai I have a WebSocket route
routes/ws/chat/[id].ts
. Is there a way to get the chat ID from the route parameters in the websocket handler? I cannot seem to access it through peer
at all, and I want to make sure that clients can always connect to the right room ID, since my application will have multiple user-managed rooms (in a database too).36 replies
Layout transitions not working between pages
@kapa.ai I managed to get the transition to work more consistently by explicitly making a
default.vue
layout:
This makes the transition work from /
--> /login
- but trying to go back from login to / shows a blank page and nothing else. I already tried wrapping a div
around NuxtLayout
:
But that didn't work.36 replies
Layout transitions not working between pages
I moved all of the transitions to
app.vue
. Now the transition works from /
to /login
, but only once - after the first transition, going back from /login
to /
does nothing, and then /
to login
doesn't do anything anymore either. @kapa.ai36 replies