router.prefetch should not trigger a React update (#75238)
The prefetch reducer doesn't actually modify any React state. It just writes to a mutable cache. So we shouldn't bother calling setState/dispatch; we can just re-run the reducer directly using the current state.
Showing
Please
register
or
sign in
to comment