Skip to content

Instantly share code, notes, and snippets.

@ksimons
Created October 12, 2022 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ksimons/d2b6501e12c0be80269863672db079fe to your computer and use it in GitHub Desktop.
Save ksimons/d2b6501e12c0be80269863672db079fe to your computer and use it in GitHub Desktop.
Using equalSelectorFamily
const filteredWorkItemsByStatusSelector = equalSelectorFamily({
key: 'FiltereWorkItemsByStatus',
get:
({ spaceId, filterString }: { spaceId: string | undefined; filterString: string }) =>
({ get }) => {
const itemIds: string[] = getFilteredWorkItemsSomehow(get, spaceId, filterString);
return itemIds:
},
equals: _.isEqual,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment