Relative Content

Tag Archive for reactjstypescriptreact-hooksreact-context

React use hooks (useContext) inside of useReducer

I have a reducer inside useContext/provider. I need to validate an action using values from another Provider. Is there a way to retrieve those values from a Provider from within the useReducer hook? Or do I have to try to feed them in as function arguments. Ex: