Skip to content

Commit

Permalink
fix(query-devtools): inform onlineManager when offline mode is simula…
Browse files Browse the repository at this point in the history
…ted (#5534)
  • Loading branch information
TkDodo committed Jun 6, 2023
1 parent 97e1a83 commit a462981
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/query-devtools/src/Devtools.tsx
Expand Up @@ -492,6 +492,7 @@ export const DevtoolsPanel: Component<DevtoolsPanelProps> = (props) => {
} else {
onlineManager().setOnline(false)
setOffline(true)
window.dispatchEvent(new Event('offline'))
}
}}
class={styles.actionsBtn}
Expand Down

0 comments on commit a462981

Please sign in to comment.