-
-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persistent layouts doesn't work in Vue 3 #527
Comments
Can you please share your code? In particular, can you share:
I've been using persistent layouts without issue with the Vue 3 adapter, so I'm not convinced this is actually a bug. |
Sure! I've shared the files using a GitHub Gist: https://gist.github.com/buismaarten/469d45f23134436bd596134c0126a420 |
@buismaarten This appears to be the working code (it's not using persistent layouts). Can you share the code that doesn't work? |
Wait, I see the issue here. You're using named slots. See #171. If you need named slots, you'll need to use regular layouts, not persistent layouts. Feel free to join in the discussion in the existing issue. Closing this, as it's a duplicate. |
Sorry, in the Gist I shared I accidentally shared the regular layout approach because I reverted the change. I see... thanks for clarifying! |
Versions:
@inertiajs/inertia
version: 0.8.5@inertiajs/inertia-vue3
version: 0.3.5Describe the problem:
Using persistent layouts gives the following error:
Steps to reproduce:
Switch from the layout component used in template to layout defined in component object.
The text was updated successfully, but these errors were encountered: