2

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?

Boussadjra Brahim
  • 82,684
  • 19
  • 144
  • 164

0 Answers0