We revised prefetch: true to be prefetch: 'mount", but kept the comparison to === true in the useEffect. I believe this makes the mount behavior only fire when true is passed, but that can never happen since === true is changed to 'mount' in the deprecation conditional:
We revised
prefetch: true
to beprefetch: 'mount"
, but kept the comparison to=== true
in theuseEffect
. I believe this makes the mount behavior only fire whentrue
is passed, but that can never happen since=== true
is changed to'mount'
in the deprecation conditional:https://github.com/frontarm/navi/blob/137a81f41ced60e5b53d49540396e9f3ee87eeaf/packages/react-navi/src/Link.tsx#L111-L125
Where mount prefetch happens:
https://github.com/frontarm/navi/blob/137a81f41ced60e5b53d49540396e9f3ee87eeaf/packages/react-navi/src/Link.tsx#L176-L180