-
Hello everybody. |
Beta Was this translation helpful? Give feedback.
Answered by
aloker
May 29, 2023
Replies: 1 comment 2 replies
-
The data coming from the load functions of all layouts and the page is merged together to form the data prop passed to the page. That is, the data prop will have all the properties of the results of the +layout.server.js as well as the properties of the result of +page.js (equally named props in the page's load result overwrite those from the layout's load function) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Graciasjr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The data coming from the load functions of all layouts and the page is merged together to form the data prop passed to the page. That is, the data prop will have all the properties of the results of the +layout.server.js as well as the properties of the result of +page.js (equally named props in the page's load result overwrite those from the layout's load function)