Asked 9 months ago
16 Aug 2023
Views 436
pratik

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();
  },[]);

Post Answer