Svelte · Senior · Question 28 of 75

What does the reroute hook do?

Explanation

It's a universal hook in hooks.js. Unlike a redirect, the user still sees the original URL.

Further reading

Problem with a question

Svelte · Senior · question 28

Test yourself

Take the Svelte · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz