-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Description
I upgraded connect-query-es and peripheral connect tools to v2 referencing migration guide, but infinite loop occurs when we call unary method.
This is my minimal reproduction source code which I created based on the examples-es/nextjs.
https://github.com/mehm8128/connect-query-infinite-loop-repro
Please check it following the below procedures.
- clone reprository
- run
npm i - temporarily comment out 13 to 22 lines (the definition of
resand the callinguseEffect) inpages/index.tsx(or you will not be able to see the page) - start server with
npm run start(you will fail to runnpm run build, so usestartcommand) - when you can see
aaatext on the started page (http://localhost:3000 ) , revert the comment out you did in the third step - you will find the infinite loop on the network tab of the devtools
Sorry if there is any my mistake, but thank you for checking my issue 🙏
Metadata
Metadata
Assignees
Labels
No labels