Closed
Description
The issue is likely a bug in RTKQ and should have been fixed by #1735, although it does not seem so.
I provide a minimal example that showcase the issue in isolation and I share the codebase here
Below the steps to riproduce the bug:
- Run dev server;
- Notice that data is properly fetched;
- Click on reset button;
Expected results:
Data is correctly re-fetched after the API reset, the useQuery first returns a loading status and then fulfills causing the component to be re-rendered since it is subscribed to the endpoint.
Actual result:
The page gets stuck in a data loading state and useQuery hook does not fulfill blocking the user flow.
Metadata
Metadata
Assignees
Labels
No labels