Skip to content

Commit

Permalink
docs: Update for typescript (#3789)
Browse files Browse the repository at this point in the history
Co-authored-by: simple <simple@woowahan.com>
  • Loading branch information
zereight and bbang-dduck authored Jul 13, 2022
1 parent 3802a85 commit 8a7f8d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/react-native.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { onlineManager } from '@tanstack/react-query'

onlineManager.setEventListener(setOnline => {
return NetInfo.addEventListener(state => {
setOnline(state.isConnected)
setOnline(!!state.isConnected)
})
})
```
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/onlineManager.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { onlineManager } from '@tanstack/react-query'

onlineManager.setEventListener(setOnline => {
return NetInfo.addEventListener(state => {
setOnline(state.isConnected)
setOnline(!!state.isConnected)
})
})
```
Expand Down

0 comments on commit 8a7f8d9

Please sign in to comment.