For following call:
useEffect(() => {
doSomething();
},[A,B]);
If will rerun doSomething() if A or B is changed, is it possible to only rerun doSomething() if BOTH A AND B are changed and not do anything if only one of them is changed?
For following call:
useEffect(() => {
doSomething();
},[A,B]);
If will rerun doSomething() if A or B is changed, is it possible to only rerun doSomething() if BOTH A AND B are changed and not do anything if only one of them is changed?