iamolegga / redux-translations

translations utils for react-redux apps
MIT License
3 stars 1 forks source link

feat: add patchState function #6

Closed iamolegga closed 6 years ago

iamolegga commented 6 years ago

patchState(changes, [updateComponents]) - Patch translations inner state without dispatching redux action. Could be useful for server-side rendering or another cases where store.dispatch function is unreachable. Returns Promise, resolved when all components are updated (if updateComponents === true) or immediately.