added state to effect

This commit is contained in:
ari committed 2022-07-29 10:47:59 -04:00
1 parent ea86f7f763
commit fa4048e28c
1 file changed
+1 -1
+1 -1
View File
@@ -60,7 +60,7 @@ export const useHassCollection = <T, D extends {} = {}>(
});
}
}
}, [conn]);
}, [conn, state]);
if (state.ready) {
if (!state.collection) {