Returns the live updates configuration from the nearest LiveUpdatesProvider.
The live updates context value, or null if not within a provider
null
function MyComponent() { const liveUpdates = useLiveUpdates() const isLive = liveUpdates?.globalLiveUpdates ?? false return <Text>{isLive ? 'Live' : 'Locked'}</Text>} Copy
function MyComponent() { const liveUpdates = useLiveUpdates() const isLive = liveUpdates?.globalLiveUpdates ?? false return <Text>{isLive ? 'Live' : 'Locked'}</Text>}
Returns the live updates configuration from the nearest LiveUpdatesProvider.