Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.x] Prefetch on the current page causes re-render and focus loss #2066

Open
Jussi-Mannisto opened this issue Oct 26, 2024 · 1 comment
Open
Labels
react Related to the react adapter

Comments

@Jussi-Mannisto
Copy link

Version:

  • @inertiajs/react version: 2.0.0-beta.2

Describe the problem:

Prefetching the current page triggers a full re-render, causing focus to be lost.

prefetch.mp4

This occurs with both the prefetch attribute and programmatic prefetching.

Steps to reproduce:

  1. Create a dropdown navigation containing links with the prefetch attribute.
  2. When the cache entry for the active page is stale, hover on its link.
@Jussi-Mannisto Jussi-Mannisto added the react Related to the react adapter label Oct 26, 2024
@Dracula707
Copy link

Dracula707 commented Nov 23, 2024

vue 3 too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
react Related to the react adapter
Projects
None yet
Development

No branches or pull requests

2 participants