@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.mjs CHANGED
@@ -1783,11 +1783,9 @@ function useEntityView(opts) {
1783
1783
  );
1784
1784
  })
1785
1785
  );
1786
- const items = useStore(
1787
- useGraphStore,
1788
- useShallow(
1789
- (state) => localViewIds.map((id) => state.readEntitySnapshot(type, id)).filter((item) => item !== null)
1790
- )
1786
+ const items = useMemo(
1787
+ () => localViewIds.map((id) => useGraphStore.getState().readEntitySnapshot(type, id)).filter((item) => item !== null),
1788
+ [localViewIds, type]
1791
1789
  );
1792
1790
  const fireRemoteFetch = useCallback(async (view, cursor) => {
1793
1791
  const { remoteFetch: rf, normalize: norm, baseQueryKey: bqk } = optsRef.current;