fix: dep key

This commit is contained in:
cha0s 2021-01-29 20:36:45 -06:00
parent de392c997d
commit 7fee37dfc8

View File

@ -44,7 +44,7 @@ const EntityComponent = ({
}, [Entity, uri]);
useEffect(() => {
entity?.load(resource);
}, [Entity, entity]);
}, [Entity, entity, resource]);
if (!entity) {
return null;
}