Skip to content

[feat] pass data from locals to load #7107

@benmccann

Description

@benmccann

Describe the problem

My site queries an external API with the following pattern:

  • handle extracts user ID from cookie
  • +layout.svelte fetches user by user ID
  • +page.svelte fetches profile by user ID

These fetches previously happened in parallel. With $session removed I have no way to write this code without introducing a waterfall

Describe the proposed solution

I'm happy with any solution folks can think of that solves this problem

I think we could potentially solve this as part of #7105

Alternatives considered

No response

Importance

i cannot use SvelteKit in a performant manner without it

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions