Skip to content
Discussion options

You must be logged in to vote

I think it's better to navigate immediately with data, have you tried adding prefetch to the Link? This way the browser will prefetch the data and other assets of a route and once the user clicks the link it may have already loaded or at least loaded faster.

If you want to replace the current UI with a skeleton, you can detect the navigation with useNavigation() and render a skeleton in a parent route.

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@parsagholipour
Comment options

@kiliman
Comment options

@parsagholipour
Comment options

@sergiodxa
Comment options

Answer selected by parsagholipour
@parsagholipour
Comment options

@spacepolice10
Comment options

@kiliman
Comment options

@spacepolice10
Comment options

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