August 2017
Beginner
374 pages
10h 41m
English
We are now going to learn how to compose store enhancers to be able to use multiple at once:
import { persistState } from 'redux-devtools'
createStore(reducer, [initialState], [enhancer])
So, we need to pass persistState as the third argument. However, there is a problem—we have already passed the DevTools.instrument() store enhancer to it. Similar to the reducer argument, the store enhancer argument only accepts a single function.
Thankfully, in functional programming, ...
Read now
Unlock full access