viewState/index
@boldpenguin/sdk-redux › Globals › "viewState/index"
Index
Variables
Functions
Variables
Const
isFeatureEnabled
• isFeatureEnabled: function & OutputSelectorFields‹function› & object = createSelector( [getViewStateFeatures, (_: BpSdkStore, feature: string) => feature], (allFeatureFlags, feature) => allFeatureFlags.list.includes(feature) )
Check if a feature flag is enabled
Functions
Const
getViewStateFeatures
▸ getViewStateFeatures(state
: BpSdkStore): IFeatureState
Gets the state and features currently in the store
Parameters:
Name | Type | Description |
---|---|---|
state | BpSdkStore | The BpSdk Redux store |
Returns: IFeatureState