Re-running a Query missing dependency
Opened this issue · 0 comments
AndrejGajdos commented
Hi there,
I think there is missing dependency in a hook in Readme:
// Listen for changes to `query` and re-run cypher if anything changes
useEffect(() => {
run({ query })
}, [ query ])
Should be
// Listen for changes to `query` and re-run cypher if anything changes
useEffect(() => {
run({ query })
}, [ run, query ])