From 7fee37dfc80daf41a4026eb1f0bda7534ac44120 Mon Sep 17 00:00:00 2001 From: cha0s Date: Fri, 29 Jan 2021 20:36:45 -0600 Subject: [PATCH] fix: dep key --- packages/entity/src/resource-controllers/entity/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/entity/src/resource-controllers/entity/index.jsx b/packages/entity/src/resource-controllers/entity/index.jsx index b4e6fed..5d22a12 100644 --- a/packages/entity/src/resource-controllers/entity/index.jsx +++ b/packages/entity/src/resource-controllers/entity/index.jsx @@ -44,7 +44,7 @@ const EntityComponent = ({ }, [Entity, uri]); useEffect(() => { entity?.load(resource); - }, [Entity, entity]); + }, [Entity, entity, resource]); if (!entity) { return null; }