How to run useEffect only once when multiple dependencies change at a same time – Reactjs
I am using a useEffect hook with two depencies as follows: useEffect(() => { ..... }, [apiData, currentMeasurements]); Note that, the apiData is obtained through useLazyQuery of apollo/client. Now upon save (say, saving or submission of form), two dependencies change…