useEffect(() => {
// Run query immediately
if (question && tableHash && Object.keys(tableHash).length > 0) {
runQuery();
}
}, [tableHash, question])
I have a useEffect clause that looks like this. However, I want it to run whenever BOTH tableHash
and question
change. Right now, it runs whenever one of them changes. Is there a way to set an AND dependency?