No, you should not store function references in the redux store. They are not serializable, and as you mentioned state should be serializable at all times. The most redux-friendly approach I can think of is just to keep the map of hotkeys to their actionCreatorFuncNames
.
More Related Contents:
- Cannot call reactReduxFirebase() – TypeError: Object is not a function
- Flutter setState() or markNeedsBuild() called when widget tree was locked
- How to reset the state of a Redux store?
- Load images based on dynamic path in ReactJs
- Fetch: reject promise and catch the error if status is not OK?
- Await is a reserved word error inside async function
- How can I persist redux state tree on refresh?
- Is this the correct way to delete an item using redux?
- How to Unit Test React-Redux Connected Components?
- React: how to load and render external html file?
- Updating nested data in redux store
- When do I choose React state Vs Redux Store
- Cleaner/shorter way to update nested state in Redux?
- Use Connect or pass data as props to children
- Redux: Why is avoiding mutations such a fundamental part of using it?
- redux fetch body is not use with no cors mode
- What’s the ‘@’ (at symbol) in the Redux @connect decorator?
- How to trigger off callback after updating state in Redux?
- Element type is invalid: expected a string (for built-in components) or a class/function
- next-redux-wrapper TypeError: nextCallback is not a function error in wrapper.getServerSideProps
- How does connect work without mapDispatchToProps
- Uncaught Invariant Violation: Too many re-renders. React limits the number of renders to prevent an infinite loop
- Pros/cons of using redux-saga with ES6 generators vs redux-thunk with ES2017 async/await
- Global state in React Native
- How to fix 431 Request Header Fields Too Large in React-Redux app
- minimise the code since I am using the same code only the content in p tags changes and component AccordionHeader header changes
- return promise from store after redux thunk dispatch
- how to set initial state in redux
- Could not find “store” in either the context or props of “Connect(App)”
- How do I see state when logging to the console instead of Proxy object inside reducer action?