A sample project to show how to use useQuery
to poll (retry on status code) api's by condition, refetch on data change.
Install the dependencies by running the following commands
npm install
cd ./api
npm install
Run npm run dev
at root and inside the api
folder. Then navigate to http://localhost:3000
.