webworker at @t3n | #neoscms addicted | triathlete | Geek, no Nerd
If you’re using Redux, consider using reselect to create “selectors” to compose and cache derived data.
Imagine we’re implementing some kind of search functionality in our GraphQL schema. Our query would probably start by looking like this:
Takes 2 parameters: mockData and delay and returns a wrapped component with a new data prop. mockData is injected into the data prop after the delay has passed. Can set delay to 0 or lea…