redux-localstorage-simple#load TypeScript Examples

The following examples show how to use redux-localstorage-simple#load. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.ts    From cuiswap with GNU General Public License v3.0 6 votes vote down vote up
store = configureStore({
  reducer: {
    application,
    user,
    transactions,
    swap,
    mint,
    burn,
    multicall,
    lists
  },
  middleware: [...getDefaultMiddleware(), save({ states: PERSISTED_KEYS })],
  preloadedState: load({ states: PERSISTED_KEYS })
})
Example #2
Source File: index.ts    From interface-v2 with GNU General Public License v3.0 6 votes vote down vote up
store = configureStore({
  reducer: {
    application,
    user,
    transactions,
    swap,
    mint,
    burn,
    multicall,
    lists,
    ...gelatoReducers,
  },
  middleware: (getDefaultMiddleware) => [
    ...getDefaultMiddleware({ serializableCheck: false, thunk: false }),
    save({ states: PERSISTED_KEYS }),
  ],
  preloadedState: load({ states: PERSISTED_KEYS }),
})
Example #3
Source File: index.ts    From sybil-interface with GNU General Public License v3.0 6 votes vote down vote up
store = configureStore({
  reducer: {
    application,
    user,
    transactions,
    multicall,
    governance,
    social,
  },
  middleware: [...getDefaultMiddleware({ thunk: false }), save({ states: PERSISTED_KEYS })],
  preloadedState: load({ states: PERSISTED_KEYS }),
})
Example #4
Source File: index.ts    From cheeseswap-interface with GNU General Public License v3.0 6 votes vote down vote up
store = configureStore({
  reducer: {
    application,
    user,
    transactions,
    swap,
    mint,
    burn,
    multicall,
    lists
  },
  middleware: [...getDefaultMiddleware({ thunk: false }), save({ states: PERSISTED_KEYS })],
  preloadedState: load({ states: PERSISTED_KEYS })
})
Example #5
Source File: index.ts    From dyp with Do What The F*ck You Want To Public License 6 votes vote down vote up
store = configureStore({
  reducer: {
    application,
    user,
    transactions,
    swap,
    mint,
    burn,
    multicall,
    lists
  },
  middleware: [...getDefaultMiddleware({ thunk: false }), save({ states: PERSISTED_KEYS })],
  preloadedState: load({ states: PERSISTED_KEYS })
})
Example #6
Source File: index.ts    From glide-frontend with GNU General Public License v3.0 6 votes vote down vote up
store = configureStore({
  devTools: process.env.NODE_ENV !== 'production',
  reducer: {
    // achievements: achievementsReducer,
    block: blockReducer,
    farms: farmsReducer,
    pools: poolsReducer,
    community: communityReducer,
    info: infoReducer,
    // predictions: predictionsReducer,
    // profile: profileReducer,
    // teams: teamsReducer,
    collectibles: collectiblesReducer,
    // voting: votingReducer,
    // lottery: lotteryReducer,

    // Exchange
    application,
    user,
    transactions,
    swap,
    bridge,
    mint,
    burn,
    multicall,
    lists,
  },
  middleware: [...getDefaultMiddleware({ thunk: true }), save({ states: PERSISTED_KEYS })],
  preloadedState: load({ states: PERSISTED_KEYS }),
})
Example #7
Source File: index.ts    From skeleton-web3-interface with GNU General Public License v3.0 6 votes vote down vote up
store = configureStore({
  reducer: {
    application,
    user,
    transactions,
    multicall,
    lists
  },
  middleware: [...getDefaultMiddleware({ thunk: false }), save({ states: PERSISTED_KEYS })],
  preloadedState: load({ states: PERSISTED_KEYS })
})
Example #8
Source File: index.ts    From forward.swaps with GNU General Public License v3.0 6 votes vote down vote up
store = configureStore({
  reducer: {
    application,
    user,
    transactions,
    swap,
    mint,
    burn,
    multicall,
    lists,
    waitmodal
  },
  middleware: [...getDefaultMiddleware({ thunk: false }), save({ states: PERSISTED_KEYS })],
  preloadedState: load({ states: PERSISTED_KEYS })
})
Example #9
Source File: index.ts    From vvs-ui with GNU General Public License v3.0 6 votes vote down vote up
store = configureStore({
  devTools: process.env.NODE_ENV !== 'production',
  reducer: {
    // achievements: achievementsReducer,
    block: blockReducer,
    farms: farmsReducer,
    pools: poolsReducer,
    // predictions: predictionsReducer,
    profile: profileReducer,
    // teams: teamsReducer,
    // collectibles: collectiblesReducer,
    // voting: votingReducer,
    // lottery: lotteryReducer,
    info: infoReducer,

    // Exchange
    user,
    transactions,
    swap,
    mint,
    burn,
    multicall,
    lists,
  },
  middleware: [...getDefaultMiddleware({ thunk: true }), save({ states: PERSISTED_KEYS })],
  preloadedState: load({ states: PERSISTED_KEYS }),
})
Example #10
Source File: index.ts    From goose-frontend-amm with GNU General Public License v3.0 5 votes vote down vote up
loadedState = load({ states: PERSISTED_KEYS }) as MergedState
Example #11
Source File: index.ts    From mozartfinance-swap-interface with GNU General Public License v3.0 5 votes vote down vote up
loadedState = load({ states: PERSISTED_KEYS }) as MergedState
Example #12
Source File: index.ts    From pancake-swap-exchange-testnet with GNU General Public License v3.0 5 votes vote down vote up
loadedState = load({ states: PERSISTED_KEYS }) as MergedState
Example #13
Source File: index.ts    From pancakeswap-testnet with GNU General Public License v3.0 5 votes vote down vote up
loadedState = load({ states: PERSISTED_KEYS }) as MergedState