Skip to main content

viewState/index

@boldpenguin/sdk-reduxGlobals"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:

NameTypeDescription
stateBpSdkStoreThe BpSdk Redux store

Returns: IFeatureState