You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In test.svelte i dont want the __layout from /routes/admin... so I reset.. but is still want to inherit routes/__layout.svelte
i already imported it and it shows up many things of the original __layout.svelte but some parts are missing because the load function isnt used this way
Describe the proposed solution
Adding the option to reset layout only by X levels with new file format
__layout.reset.svelte -> reset full inheritance of nested layouts __layout.reset.1.svelte -> reset layout of only 1 level __layout.reset.2.svelte -> reset layout of only 2 level
and so on
Alternatives considered
<script lang="ts" context="module">
import { load as loadOrigin } from "../../../__layout.svelte";
export async function load(arg) {
let originLoadRet = await loadOrigin(arg);
return {
props: {
originLoadRet
}
}
}
</script>
<script lang="ts">
export let originLoadRet : any;
import LayoutOrigin from "../../../__layout.svelte";
</script>
<LayoutOrigin {...originLoadRet.props}>
<slot></slot>
</LayoutOrigin>
Importance
would make my life easier
Additional Information
If the reset level is higher than the totally nested layouts a warning is given and it acts as full reset
The text was updated successfully, but these errors were encountered:
Describe the problem
Having following structure
In test.svelte i dont want the
__layout
from /routes/admin... so I reset.. but is still want to inheritroutes/__layout.svelte
i already imported it and it shows up many things of the original
__layout.svelte
but some parts are missing because the load function isnt used this wayDescribe the proposed solution
Adding the option to reset layout only by X levels with new file format
__layout.reset.svelte
-> reset full inheritance of nested layouts__layout.reset.1.svelte
-> reset layout of only 1 level__layout.reset.2.svelte
-> reset layout of only 2 leveland so on
Alternatives considered
Importance
would make my life easier
Additional Information
If the reset level is higher than the totally nested layouts a warning is given and it acts as full reset
The text was updated successfully, but these errors were encountered: