Skip to main content

status/remote/questionSets

@boldpenguin/sdk-reduxGlobals"status/remote/questionSets"

Index

Variables

Variables

Const getAllQuestionSetResources

getAllQuestionSetResources: function & OutputSelectorFields‹function› & object = createSelector(getRemoteStatus, (status) => status.questionSets.map)

Returns all question set resource states

param The entire BpSdk Redux store


Const getQuestionSetState

getQuestionSetState: function & OutputSelectorFields‹function› & object = createSelector(getRemoteStatus, (status) => status.questionSets.state)

Returns status of question sets

param The BpSdk Redux store


Const isActiveQuestionSetLoading

isActiveQuestionSetLoading: function & OutputSelectorFields‹function› & object = createSelector( getAllQuestionSetResources, getCurrentActiveQuestionSet, getIdOfNextQuestionSetNotInState, (allQuestionSetResources, activeQuestionSet, idOfNextActiveQuestionSetNotInState) => { if (idOfNextActiveQuestionSetNotInState) { return true; } return activeQuestionSet ? allQuestionSetResources[activeQuestionSet.id] === LoadingStates.Loading : false; } )

Returns if the current question set is transitioning to another

param The entire BpSdk Redux store


Const isQuestionSetLoading

isQuestionSetLoading: function & OutputSelectorFields‹function› & object = createSelector( getAllQuestionSetResources, getCurrentActiveQuestionSet, (_: BpSdkStore, questionSetId: string) => questionSetId, (allQuestionSetResources, activeQuestionSet, questionSetId) => activeQuestionSet ? allQuestionSetResources[questionSetId] === LoadingStates.Loading : false )

Returns if the question set is loading by ID

param The entire BpSdk Redux store

param The question set ID