Add 'path' to dep list

This commit is contained in:
Chewbacca 2023-04-03 13:13:59 -04:00
parent 17800fa56f
commit 909f294165
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ function useEntities<TEntity extends Entity>(
if (isInvalid || isUnset || isStale) {
fetchEntities();
}
}, [isEnabled]);
}, [isEnabled, ...path]);
return {
entities,