Is there a way to apply types to useContext that prohibits using hook in case, the respective Provider won't be used with this component? It prevents forgetting the usage of providers.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Is there a way to apply types to
useContext
that prohibits using hook in case, the respective Provider won't be used with this component? It prevents forgetting the usage of providers.