Skip to content

Instantly share code, notes, and snippets.

@alex-okrushko
Last active March 14, 2019 14:35
Show Gist options
  • Select an option

  • Save alex-okrushko/47a621f9302d302c4c694b72c6599894 to your computer and use it in GitHub Desktop.

Select an option

Save alex-okrushko/47a621f9302d302c4c694b72c6599894 to your computer and use it in GitHub Desktop.
export const isLoading = createSelector(
getResultState,
state => state.callState === CallState.LOADING,
);
export const isLoaded = createSelector(
getResultState,
state => state.callState === CallState.LOADED,
);
export const getError = createSelector(
getResultState,
state => getError(state.callState),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment