Rovenue Web SDK
    Preparing search index...

    Function useEntitlements

    • Entitlements, served from cache first.

      The initial value is the SDK's last-known cache rather than null, because the alternative is a first paint that shows the paywall to someone who has already paid to remove it. The network result replaces it when it arrives.

      null and {} are deliberately different: {} is a real answer meaning the subscriber has no entitlements, null means we have not found out. Collapsing them makes an outage indistinguishable from an unsubscribed user, and that difference decides whether an app locks someone out.

      Returns EntitlementsState