7
Uzyskujesz dostęp do stanu Redux w kreatorze akcji?
Powiedz, że mam następujące: export const SOME_ACTION = 'SOME_ACTION'; export function someAction() { return { type: SOME_ACTION, } } I w tym kreatorze akcji chcę uzyskać dostęp do globalnego stanu sklepu (wszystkie reduktory). Czy lepiej to zrobić: import store from '../store'; export const SOME_ACTION = 'SOME_ACTION'; export function someAction() { …
296
javascript
redux