onlineManager (cannot detect going offline when I mock in DevTools)
onlineManager only logs
{ online: true }, no matter what happens and cannot detect going offline when I mock in DevTools. I'm using "@tanstack/react-query": "^4.29.7" version. I attached an image when I tried to mock the devtools into offline. What did I miss here? Thanks.

6 Replies
fascinating-indigo•3y ago
That's a bug in the devtools I think. Have you tried with actually going offline?
fascinating-indigoOP•3y ago
Hello.. I tried going offline and yes it's perfectly working. :reactquery:
Hello.. I tried going offline and yes it's perfectly working. :reactquery:
fascinating-indigo•3y ago
@Aryan i think i fixed this bug in the devtools somewhere in v5. Is it also fixed in the solid version?
fascinating-indigo•3y ago
I think we need to raise the
offline event here, too: https://github.com/TanStack/query/blob/b767179ea3d720dba9be1c62495aa07d453305fb/packages/query-devtools/src/Devtools.tsx#L488-L495GitHub
query/Devtools.tsx at b767179ea3d720dba9be1c62495aa07d453305fb · Ta...
🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query. - query/Devtools.tsx at b767179ea3d720db...
fascinating-indigo•3y ago
with
window.dispatchEventfascinating-indigoOP•3y ago
I will check on this. Thank you so much. :reactquery: :reactquery: