yesterday
Custom hooks and entitlement guard components in the React SDK
We've made it easier to integrate applications with Stigg using the React SDK by introducing custom hooks and entitlement guard components:
1. Hooks that give you access to the Stigg object, entitlement checks, and helper methods for fetching data.
2. Entitlement guard components are useful in the cases where you need to wrap some part of the UI with an entitlement check and show a component in case the customer has no access to the feature.
The new capabilities are available in the Stigg React SDK v5.28.0 or later.