#can I load a layout inside a layout even if they on the same stage?

11 messages ยท Page 1 of 1 (latest)

tawdry jewel
#

The title says everything ๐Ÿ˜„

drowsy mortar
#

@tawdry jewel I am not sure that it is clear what you want to accomplish ๐Ÿ˜„

tawdry jewel
#

I want to load a layout inside a layout xD

torn timber
#

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?

tawdry jewel
#

The right question is: can i use a loader$ from layout_1 in layout_2?

#

Thats my root Probleme ๐Ÿ˜‚

torn timber
#

Yeah, you just import it. ๐Ÿ‘

tawdry jewel
#

I think my actual version is the false one

cloud coyote
tawdry jewel
#

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]
}