-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
It seems this doesn't work with React Strict mode:
reactStrictMode: false — the library's useInterceptLinkClicks uses as a one-time guard that never resets in cleanup. Strict Mode's double-invoke leaves the listener detached permanently.
https://github.com/LayerXcom/next-navigation-guard/blob/main/src/hooks/useInterceptLinkClicks.ts#L25
Setting it to false on cleanup seems to work fine as a workaround.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels