repos / starfx

supercharged async flow control library.
git clone https://github.com/neurosnap/starfx.git

commit
064d6fe
parent
471b64e
author
Eric Bower
date
2024-01-03 19:03:23 +0000 UTC
fix(table): properly memoize `selectByIds`
1 files changed,  +2, -2
M store/slice/table.ts
+2, -2
 1@@ -72,8 +72,8 @@ function tableSelectors<
 2     selectById: sbi,
 3     selectByIds: createSelector(
 4       selectTable,
 5-      (_: S, p: PropIds) => p,
 6-      findByIds,
 7+      (_: S, p: PropIds) => p.ids,
 8+      (data, ids) => findByIds(data, { ids }),
 9     ),
10   };
11 }