Skip to content

WIP: Resolve "Document recommend selectors for getting ordered lists"

What I did

  • Implemented new sort selector method getSortedByProp
  • Implement advanced sort data types, E.g., Dates
  • Memoize sort selectors with reselect
  • Add sort reducers sortBy and sortDuration
  • Add sort action creators for SET_SORT
  • Document in storybook with usage examples
  • Add usage examples for managing externally driven sort orders & selector derived sort orders
  • Add automated tests for the new selectors, reducers, actions

Implications

None

How to test

  • Start yarn storybook and open in your browser
  • Open the Selectors -> Sorting story
  • Ensure the documentation makes sense
  • Use yarn link to link your development version to an existing project
  • Implement a few selectors and test the results

Depends !5 (merged) Closes #11

Edited by Sam Sehnert

Merge request reports