iamFIREcracker / react-query-fetch-next-page-bug

A playground to inspect a possible bug with react-query fetchNextPage

Home Page:https://react-query-playground.iamfirecracker.repl.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-query-fetch-next-page-bug

Are you allowed to call useInfiniteQuery's fetchNextPage when hasNextPage is false? And most importantly: should you? Let's find out!

Spoiler alert: you should not!

Instructions

You can either point your browser to this Repl and follow the instructions on screen; or you can do it the old school way:

  • Clone this repository
  • Install its dependencies
npm install
  • Run the app
npm run start

If all went well a new browser window should have opened pointing to the Web application of this repository (if not, point your browser to "http://localhost:3000" or whichever URL create-react-app would have logged in the terminal).

About

A playground to inspect a possible bug with react-query fetchNextPage

https://react-query-playground.iamfirecracker.repl.co


Languages

Language:JavaScript 81.3%Language:HTML 16.8%Language:Nix 1.5%Language:CSS 0.4%