in my react app i\'m using useContext to update some state by another component (i mean in custom hook). when i want to update the state i get this error:
useContext