0
pratik posted
Error: could not find react-redux context value; please ensure the compo nent is wrapped in a <Provider>
want to use React-Redux library but some how i got following error
Error: could not find react-redux context value; please ensure the compo
nent is wrapped in a <Provider>
//fetch Api
useEffect(() => {
// AsyncStorage.removeItem("isFirstTime");
const fetching = async () => {
try {
await dispatch(fetchProducts());
} catch (err) {
alert(err);
}
};
fetching();
},[]);