Replies: 1 comment 1 reply
-
I'll move this to a discussion since it's a usage question. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
A NextJS app that uses "Link" from "@/i18n/routing" to navigate.
Once user clicks on a Link it gets redirected to the target page.
During the transition between pages, a ~0.5s delay can be detected.
This delay occurs right after user clicks on the "a" element and before the new "pathname" gets added to the url.
Describe the solution you'd like
Ability to include delay state between redirects. A context maybe?
Describe alternatives you've considered
Manually check for clicks on "a" element and toggle a loading state like:
However this doesn't feel clean and also it doesn't work on all scenarios, specially if user clicks on link to same page.
Beta Was this translation helpful? Give feedback.
All reactions