Skip to content

Selector factories should use defaultMemoize for caching #2109

@griest024

Description

@griest024

Instead of

(() => {
  let cache;
  return () => cache = cache
    ? cache
    : createSelectors();
})()

do

defaultMemoize(() => createSelectors()).memoized

Metadata

Metadata

Assignees

No one assigned

    Labels

    layer: stateThis PR or issue is related to the redux state layerp2medium priority

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions