Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 9th, 2020 184 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Main component  
  2.   componentDidMount() {
  3.    dispatch(showLoader());
  4.   }
  5.  
  6.   render() {
  7.     return (
  8.       <Wrapper>
  9.         <Component1 />
  10.         <Component2 />
  11.         <Component3 />
  12.       </Wrapper>
  13.     );
  14.   }
  15.  
  16. // Each of components are similar:
  17.  
  18. export const loadPageData = () => async () => {
  19.     try {
  20.     const responses = await dispatch(loadSth());
  21.     dispatch(loadPageSuccess(responses));
  22.     dispatch(hideMultipleLoader());
  23.   } catch (error) {
  24.     // handle error
  25.   }
  26. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top