feat(ui): use lruMemoize for argsMemoize on selectors

This provides a small performance improvement, on the order of a few ms per interaction.
This commit is contained in:
psychedelicious 2024-01-01 19:16:20 +11:00 committed by Kent Keirsey
parent 34e7b5a7fb
commit e698a8006c

View File

@ -9,6 +9,7 @@ export const createMemoizedSelector = createSelectorCreator({
memoizeOptions: {
resultEqualityCheck: isEqual,
},
argsMemoize: lruMemoize,
});
/**
@ -16,4 +17,5 @@ export const createMemoizedSelector = createSelectorCreator({
*/
export const createLruSelector = createSelectorCreator({
memoize: lruMemoize,
argsMemoize: lruMemoize,
});