2 ms·
Yes, here some simple examples: (state, action) => ({...state, loading: true}) (state, {error}) => ({...state, error, loading: false}) (state, {r
by k__ 11y ago
Yes, here some simple examples:
(state, action) => ({...state, loading: true})
(state, {error}) => ({...state, error, loading: false})
(state, {result:{data}}) => ({...state, ...data, loading: false})