Contentful Personalization & Analytics
    Preparing search index...
    • Returns the live updates configuration from the nearest LiveUpdatesProvider.

      Returns LiveUpdatesContextValue | null

      The live updates context value, or null if not within a provider

      function MyComponent() {
      const liveUpdates = useLiveUpdates()
      const isLive = liveUpdates?.globalLiveUpdates ?? false
      return <Text>{isLive ? 'Live' : 'Locked'}</Text>
      }