Why context variables do not update automatically in other contexts/components? [closed]
Closed yesterday.
Why context variables do not update automatically in other contexts/components? [closed]
Closed yesterday.
Changing state in context within useEffect gives maximum depth error
`i get maximum depth error when i change context within useEffect even with empty dependency array,the error doesnt happen when i change it with a button , Here is the code App.js function Alpha() { const ctx = useContext(contexts); function ShareComponnet() { return ( <Stack.Navigator> <Stack.Screen name=”Shares” component={ShareScreen} /> </Stack.Navigator> ); } return ( <NavigationContainer> […]
Is possible to use hooks in React if component created manually passed as state?
Basically I have ModalContext
in which is: