fix: dep key
This commit is contained in:
parent
de392c997d
commit
7fee37dfc8
|
@ -44,7 +44,7 @@ const EntityComponent = ({
|
||||||
}, [Entity, uri]);
|
}, [Entity, uri]);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
entity?.load(resource);
|
entity?.load(resource);
|
||||||
}, [Entity, entity]);
|
}, [Entity, entity, resource]);
|
||||||
if (!entity) {
|
if (!entity) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user