Code example:
useEffect(() => { //I want to know which was the variable which made the useffect run. var1 or var2. how can I? }, [var1, var2]);