Layout: null ignored on default layout.
See original GitHub issueVersions:
@inertiajs/inertia
version: 0.10.1@inertiajs/inertia-vue
version: 0.7.2
Describe the problem:
When setting up a default layout the layout: null is ignored as setting.
Steps to reproduce:
Setup a default layout and try to exclude a page from it by using the layout: null setting.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Setting Layout to null in _Layout.cshtml - Stack Overflow
In nested layouts , you intentionally use Layout property to define super layout of layout page . By default it is null in...
Read more >Layout = null vs. ignoring Layout Property in ASP.NET MVC
This is pretty simple , Layout=null , the view does not use any layout and the layout of the page will be the...
Read more >Layout in ASP.NET Core - Microsoft Learn
Ignoring sections By default, the body and all sections in a content page must all be rendered by the layout page. The Razor...
Read more >View - Android Developers
Horizontal layout direction of this view is from deduced from the default language script for the locale. int, LAYOUT_DIRECTION_LTR.
Read more >StackPane (JavaFX 8) - Oracle Help Center
If set, the stackpane will layout the child with the margin space around it. Setting the value to null will remove the constraint....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@HazJ Dynamic imports return a promise.
See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#dynamic_imports
You can set the default layout once the import has resolved.
Without any code, this is hard to help with. However, I’m guessing you’re using the example code from the docs for this:
Instead of doing that, try this instead:
This will support setting the layout to
null
, which will disable the default layout. 👍