일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- Ethereum
- evm
- blockchain
- node.js
- CSS
- typeScript
- graphQL
- concept
- nextJS
- REACT
- useState
- express.js
- HTML
- 삶
- tailwindcss
- solidity
- Redux
- hardhat
- Props
- 기준
- JavaScript
- built in object
- SSR
- CLASS
- web
- middleware
- bitcoin
- error
- Interface
- API
- Today
- Total
목록Redux (12)
ReasonJun
PersistGate is a component provided by the Redux Persist library to delay the rendering of your app's UI until your persisted state has been retrieved and saved to Redux. This can be useful for preventing your app from rendering with incomplete or stale data. PersistGate takes two props: loading: This prop can be a React element that will be rendered while the persisted state is being loaded. pe..
persistReducer and persistStore are two functions provided by the Redux Persist library to persist Redux state to persistent storage. persistReducer takes a configuration object and a reducer as input and returns a new reducer that persists the state to the configured storage. The configuration object specifies the following: The key to use to store the state in the storage. The storage engine t..
abort is a function in Redux Toolkit that can be used to cancel an asynchronous action. Asynchronous actions are actions that perform some kind of external operation, such as fetching data from an API. abort takes two arguments: action: The action to be aborted. error: An optional error object to be passed to the rejected action. The action argument is the action that you want to cancel. The err..
createAsyncThunk is a function in Redux Toolkit that helps you write asynchronous actions in Redux. Asynchronous actions are actions that perform some kind of external operation, such as fetching data from an API. createAsyncThunk takes two arguments: actionName: The name of the action. payloadCreator: A function that takes the action's payload as an argument and returns a promise. The payloadCr..
createAction() The createAction() function in Redux Toolkit is a helper function that creates an action creator function. An action creator function is a function that returns an action object. The createAction() function takes two arguments: the action type and an optional prepareCallback function. The action type is a string that uniquely identifies the action. The prepareCallback function is ..
The configureStore() function in Redux Toolkit is a simplified version of the createStore() function in the original Redux library. It takes care of setting up the store with the middleware you need, and it also includes redux-thunk by default. Here is the syntax for using configureStore(): import { configureStore } from '@reduxjs/toolkit'; const store = configureStore({ reducer: rootReducer, })..