Skip to content
Discussion options

You must be logged in to vote

You are returning { data: contributors }. SvelteKit merges the data from the above layouts into the final output, which is then { data: .., contributors: .., .. }. I think you want to return { contributors: contributors } (or { contributors }) instead, then the data from the layout is properly overridden.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@vorcigernix
Comment options

@dummdidumm
Comment options

Answer selected by vorcigernix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants