Skip to content

Commit

Permalink
docs(react-native): fix typo (#8637)
Browse files Browse the repository at this point in the history
  • Loading branch information
foresterre authored Feb 12, 2025
1 parent 4621e5b commit b184cd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/framework/react/react-native.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ import { onlineManager } from '@tanstack/react-query'
import * as Network from 'expo-network'

onlineManager.setEventListener((setOnline) => {
const eventSubscribtion = Network.addNetworkStateListener((state) => {
const eventSubscription = Network.addNetworkStateListener((state) => {
setOnline(!!state.isConnected)
})
return eventSubscribtion.remove
return eventSubscription.remove
})
```

Expand Down

0 comments on commit b184cd5

Please sign in to comment.