Redux store does not have a valid reducer

Cing Sian Dal
1 min readJun 15, 2020

--

You have searched all on Stackoverflow. It didn’t help any.

Here is why:

Put Provider at the top-level component.

If you structure your component like this on your App.js:

return(
<SafeAreaView>
<Provider store={createStore(reducers)}>
</Provider>
</SafeAreaView>
);

You will get an error: Redux store does not have a vlid reducer.

Instead,

return(
<Provider store={createStore(reducers)}>
<SafeAreaView>
</SafeAreaView>
</Provider>

Keep Provider at top level component.

--

--

Cing Sian Dal
Cing Sian Dal

Written by Cing Sian Dal

Don’t follow me. I wrote junks here. Follow me on Twitter instead.

No responses yet