Skip to content

Commit a462981

Browse files
authored
fix(query-devtools): inform onlineManager when offline mode is simulated (#5534)
1 parent 97e1a83 commit a462981

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/query-devtools/src/Devtools.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ export const DevtoolsPanel: Component<DevtoolsPanelProps> = (props) => {
492492
} else {
493493
onlineManager().setOnline(false)
494494
setOffline(true)
495+
window.dispatchEvent(new Event('offline'))
495496
}
496497
}}
497498
class={styles.actionsBtn}

0 commit comments

Comments
 (0)