Custom Layouts don't work when using endpoints to populate data for template #5595
Labels
bug
Something isn't working
p1-important
SvelteKit cannot be used by a large number of people, basic functionality is missing, etc.
Milestone
Describe the bug
You can't use custom layouts if you use a named endpoint to separate data logic from template logic.
Reproduction
Create a structure such as
src/routes/hello.ts
src/routes/[email protected]
src/routes/__layout-foo.svelte
GET request to
/hello
and it returns body data from hello.ts not html from [email protected]Logs
System Info
Severity
serious, but I can work around it
Additional Information
I can work around it by combining data requests and template markup into a single svelte file
The text was updated successfully, but these errors were encountered: