You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
vcarrara, emcol, loreggia, 204504bySE, advaniasteinar and 6 more