Skip to content

Instantly share code, notes, and snippets.

@alyssaBiasi
Created September 6, 2016 22:51
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 alyssaBiasi/d4e9264d0272cd89b3fc192279fb6233 to your computer and use it in GitHub Desktop.
Save alyssaBiasi/d4e9264d0272cd89b3fc192279fb6233 to your computer and use it in GitHub Desktop.
REA ReactJS Performance Debugging "Selectors"
const { createSelector } = require('reselect');
export const getViewModel = createSelector(
[
getFiltersChannel,
getFilters,
getFiltersSort
],
(channel, filters, sortType) => new ViewModel(channel, filters, sortType)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment