Skip to content
Discussion options

You must be logged in to vote

params is a part of the event object, e.g., event.params
You could also extract params from event.

export const load = (event) => {
  // use can use event
  const { params } = event;

  // you can use params or event.params
}

More info on what's in event in the type docs https://kit.svelte.dev/docs/types#sveltejs-kit-requestevent

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

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