Top "React-redux" questions

The react-redux package provides the official React bindings for Redux: the `useSelector` and `useDispatch` hooks and the `connect` higher-order component.

redux action "is not a function" when dispatched from component

I am trying to create an app with a CSV upload. When a CSV is uploaded it will change the …

reactjs redux dropzone.js react-redux redux-thunk
Flow: Throws error Cannot resolve module "react-redux" even tho it's installed

Even tho module is installed and it exists, Flow cannot resolve it and throws error. See below: 1) Inside bash I …

javascript react-redux flowtype
How to cache fetched data in react without redux

I know, using Redux I have common store and when I change my location, for example I went from /videos …

javascript reactjs caching react-redux browser-cache
Typescript cannot find redux

I am getting the following error: node_modules/@types/react-redux/index.d.ts(8,24): error TS2307: Cannot find module 'redux'. despite …

typescript redux react-redux
React Redux Store updating, but component not re-rendering

Using the terminal to test my dispatched actions, Redux-logger shows that my state is being correctly updated. However, my component …

reactjs redux render react-redux
react-redux-v6: withRef is removed. To access the wrapped instance, use a ref on the connected component

I want to call a function from a connected component using ref, so I used before from withRef: true in …

javascript reactjs redux react-redux
Why React.Children.only?

Quick question for react gurus ;) React.Children.only is one of its top-level apis, and is very commonly used by …

reactjs react-router react-redux children
Typescript: How to type the Dispatch in Redux

For example I want to remove the dispatch: any here: export const fetchAllAssets = () => (dispatch: any) => { dispatch(actionGetAllAssets); return …

javascript typescript redux react-redux dispatch
React Redux - this.props.actions.fetchPosts is not a function

i have issue with calling async action from my component, i think i did everything what was needed to work …

reactjs redux react-redux redux-thunk react-async
React useReducer: How to combine multiple reducers?

I'm not a Javascript expert so I wondered if anyone has an "elegant" way to combine multiple reducers to create …

javascript reactjs react-redux react-hooks reducers