-
Notifications
You must be signed in to change notification settings - Fork 472
Open
Description
Describe the bug
Hello there. Thanks for all the work you put in this project!
This issue is most probably related to #3764 but it's different since the behavior I'm experiencing (both in dev and in production) appears in the network tab where some requests show as canceled (so not only a react warning).
I've created a repro here: https://github.com/giacomocerquone/urql-teardown-react19-router-bug where you also have a video showing both the urql's devtools and the network tab.
The TLDR of the problem is the following:
- react-router 7 in declarative mode (so the most basic possible way of moving between pages)
- React 19 and urql 4.2.2
- I have two pages containing two
useQuery
sharing the same query with anetwork-only
policy - When I navigate from Page1 to Page2, I see a first request being torn down and immediately after a new request which will actually return successfully.
Reproduction
https://github.com/giacomocerquone/urql-teardown-react19-router-bug
Urql version
Latest 4.2.2
Validations
- I can confirm that this is a bug report, and not a feature request, RFC, question, or discussion, for which GitHub Discussions should be used
- Read the docs.
- Follow our Code of Conduct
gianlucadifrancesco
Metadata
Metadata
Assignees
Labels
No labels