@prometheus-ags/prometheus-entity-management 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -1789,11 +1789,9 @@ function useEntityView(opts) {
|
|
|
1789
1789
|
);
|
|
1790
1790
|
})
|
|
1791
1791
|
);
|
|
1792
|
-
const items =
|
|
1793
|
-
useGraphStore,
|
|
1794
|
-
|
|
1795
|
-
(state) => localViewIds.map((id) => state.readEntitySnapshot(type, id)).filter((item) => item !== null)
|
|
1796
|
-
)
|
|
1792
|
+
const items = React6.useMemo(
|
|
1793
|
+
() => localViewIds.map((id) => useGraphStore.getState().readEntitySnapshot(type, id)).filter((item) => item !== null),
|
|
1794
|
+
[localViewIds, type]
|
|
1797
1795
|
);
|
|
1798
1796
|
const fireRemoteFetch = React6.useCallback(async (view, cursor) => {
|
|
1799
1797
|
const { remoteFetch: rf, normalize: norm, baseQueryKey: bqk } = optsRef.current;
|