Let's say I have two React components, A and B. Both components have a useEffect that 'listens' to the same condition (condition1, which could be a global variable, as in some React Context). When the context variable changes, which component's useEffect() is executed first?
Component A { React.useEffect(() => { do something }, [condition1]); }
Component B { React.useEffect(() => { do something else }, [condition1]); }