In Calypso we should always import combineReducers
from state/utils
instead of redux
. Our reducing function handles
persistence for us. If we use the default reducing function from redux, we may persist state accidentally.
See also: Opt-in to Persistence
The following patterns are considered warnings:
import { combineReducers } from 'redux';
The following patterns are not warnings:
import { combineReducers } from 'state/utils';
import { createStore } from 'redux';