When use react hooks in my application, application run for a blink of second and shows dispatch is not a function as error.
— Why it happens and how to rectify it?
— You are using useContext
— I think you want useReducer
— Use reducer already used in context
— But in context.provider I had send that
— Ok I see you are doing in different way
— Can you give me an example?
— Is this error or warning?