libraries/common/actions/client/fetchClientInformation.js
function fetchClientInformation() {
  return (dispatch) => {
    dispatch(requestClientInformation());

    if (!hasSGJavaScriptBridge()) {
      dispatch(receiveClientInformation(defaultClientInformation));
      return;
    }

    getWebStorageEntry({ name: 'clientInformation' })
      .then(response => dispatch(receiveClientInformation(response.value)))
      .catch((error) => {
        logger.error(error);
        dispatch(errorClientInformation());
      });
  };
}
function fetchClientInformation() {
  return (dispatch) => {
    dispatch(requestClientInformation());

    if (!hasSGJavaScriptBridge()) {
      dispatch(receiveClientInformation(defaultClientInformation));
      return;
    }

    getWebStorageEntry({ name: 'clientInformation' })
      .then(response => dispatch(receiveClientInformation(response.value)))
      .catch((error) => {
        logger.error(error);
        dispatch(errorClientInformation());
      });
  };
}
function fetchClientInformation ( ) { return ( dispatch ) => { dispatch ( requestClientInformation ( ) ) ; if ( ! hasSGJavaScriptBridge ( ) ) { dispatch ( receiveClientInformation ( defaultClientInformation ) ) ; return ; } getWebStorageEntry ( { name : 'clientInformation' } ) . then ( response => dispatch ( receiveClientInformation ( response . value ) ) ) . catch ( ( error ) => { logger . error ( error ) ; dispatch ( errorClientInformation ( ) ) ; } ) ; } ; }
Requests the client information from the web storage.
@return {Function} A redux thunk.
Requests the client information from the web storage .