Skip to content

What is the reason for subsequent root navigation not triggering hooks handle function? #10945

Closed Answered by eltigerchino
laszlo1337 asked this question in Q&A
Discussion options

You must be logged in to vote

As far as I recall, it's not explicitly mentioned anywhere in the documentation. I'd highly encourage you to submit an issue for this.

The reasoning for your handle function running depends on how your project setup. Assuming the page options are left as default (ssr and csr enabled), the initial request will server-side render the page (goes through the server hook handle). Subsequent requests are client-side rendered, so only if they have a server load function, a request will be sent to request the __data.json file, which goes through the handle hook once again. Otherwise, they never trigger the server hook handle.

The link below is an example of the server hook handle logging any requ…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Neptunium1129
Comment options

@Neptunium1129
Comment options

@eltigerchino
Comment options

@orenaksakal
Comment options

@eltigerchino
Comment options

Answer selected by laszlo1337
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants