#can I load a layout inside a layout even if they on the same stage?
11 messages ยท Page 1 of 1 (latest)
@tawdry jewel I am not sure that it is clear what you want to accomplish ๐
I want to load a layout inside a layout xD
Layouts will be nested automatically if they are in different parent/child directories. If they are in the same directory it seems like you would just want one layout?
The right question is: can i use a loader$ from layout_1 in layout_2?
Thats my root Probleme ๐
Yeah, you just import it. ๐
I think my actual version is the false one
Exactly this. You also are able to use names layouts and can basically stack them yourself, if you need to.
here is my problem (version is latest now)
okay its seems its caused I used
const rating = getRatings.use();
But when I used it like the docs it says:
const rating = getRatings;
console.log(rating.value); //undefined in console
console.log(rating); // see the next code block
<ref *1> [Function: loader] {
__brand: 'server_loader',
__qrl: [AsyncFunction: invokeQRL] {
getSymbol: [Function: getSymbol],
getHash: [Function: getHash],
resolve: [AsyncFunction: resolve],
'$resolveLazy$': [Function: resolveLazy],
'$setContainer$': [Function: setContainer],
'$chunk$': '/src/getratings_loader_0sjer2xlh0e.js',
'$symbol$': 'getRatings_loader_0sJer2xlH0E',
'$refSymbol$': null,
'$hash$': '0sJer2xlH0E',
getFn: [Function: invokeFn],
'$capture$': null,
'$captureRef$': [],
'$dev$': {
file: '/Users/ambitive/Desktop/Qwik/Development 2.0/dev.merten-immobilien.de/src/routes/layout.jsx',
lo: 592,
hi: 1174,
displayName: 'getRatings_loader'
}
},
use: [Circular *1]
}