thunk
is already included, no need to add it.
Redux DevTools
is also included, but you can turn it off by calling useDevTools
.
// app.jsx
import React from 'react'
import { Provider, useDevTools } from 'master-hook'
useDevTools(false)
export const App = () => (
<Provider>
// Your app code is here
</Provider>
)
Make sure to do it BEFORE calling 'Provider'
To add more middleware, use addMiddleware
.
// app.jsx
import React from 'react'
import { Provider, addMiddleware } from 'master-hook'
addMiddleware(['list of your middlewares'])
export const App = ({children}) => (
<Provider>
{children}
</Provider>
)
Make sure to do it BEFORE calling 'Provider'
- Using Storages
- Using Actions
- Using Selectors
- Caching
- Preventing Rerendering
- Preventing Actions
- Autoset 'isPending'
- Typescript
- Adding Reducers
- Adding Middleware and DevTools [you are here]