-
|
When App Layout has you include your content as props how do you get it working on a page that has you include your content as { children } ? Is this just not possible? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hey! |
Beta Was this translation helpful? Give feedback.
-
|
Posting here for posterity, as it was discussed in more details in a separate request. App Layout cannot be used in the server part of the and use it in the layout: |
Beta Was this translation helpful? Give feedback.
Posting here for posterity, as it was discussed in more details in a separate request.
App Layout cannot be used in the server part of the
layoutfile, because it uses hooks that wouldn't work on a server.You would have to create a client-side wrapper where you can pass children to the content slot:
and use it in the layout: