Javascript – React context not updating value
I'm trying to call an animation but simultaneously call an async function. Once that resolves it should stop the animation console.log(context, "context value outside") //updating const animate = useCallback( async (index = 0) => { console.log(context, "context value inside") //not…