Skip to content

Instantly share code, notes, and snippets.

@kmaraz
Created April 6, 2018 15:28
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 kmaraz/599f366d75ed2aeee0ec87e9fd171efa to your computer and use it in GitHub Desktop.
Save kmaraz/599f366d75ed2aeee0ec87e9fd171efa to your computer and use it in GitHub Desktop.
export const selectFeatureA = fromFeatureA.selectFeatureA;
export const selectFeatureB = fromFeatureB.selectFeatureB;
export const selectCombinedFeature = createSelector(selectFeatureA, selectFeatureB,
(a, b) => a.find((x) => x.id === b.id)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment