Gendarme
Gendarme
NNuxt
Created by Gendarme on 7/25/2024 in #❓・help
API route errors
No description
8 replies
NNuxt
Created by Gendarme on 5/29/2024 in #❓・help
Nuxt Content: inline components with slots
I'm using the Nuxt UI Pro Docs template. I'm looking to have popovers with inline triggers (they look just like links, but are popovers). I want the popover panel to have markdown content as well, but since slots don't seem to be supported I'm forced to send in unformatted text as a prop, which is... incredibly suboptimal. Is there a way that I am not seeing?
8 replies
NNuxt
Created by Gendarme on 7/11/2023 in #❓・help
Redirect on initial load; conflicts with hydration
Greetings. I am wondering about the implementation of a rather simple "pattern" that is common but somehow I alone seem to be struggling with. I wish to redirect logged in users from the index page to /home (which is common on the web). What I am trying to do is to—in the middleware—poll the backend to see if I am logged in and navigateTo("/home") if true. The problem is that this breaks with SSR, since I would be redirecting during hydration. Is my approach stupid? Is the redirect perhaps supposed to be initiated from the backend... somehow? Is it possible to somehow "await" hydration and redirect afterwards? After extensive searches I have only found one Github issue with the same problem but without a solution: https://github.com/nuxt/nuxt/issues/15136
2 replies