couzic / lenrix

Type-safe, reactive, focusable redux store wrapper
MIT License
24 stars 1 forks source link

Pass updatable state fields down focused store as readonly fields #50

Closed couzic closed 5 years ago

couzic commented 5 years ago
store
.computeFromFields(
  ['selectedStatsProduct'],
  ({ selectedStatsProduct }) => ({
    selectedStatsProduct,
  }),
)
.focusPath(
  [...],
  ['selectedStatsProduct'],
)

should be:

store
.focusPath(
  [...],
  ['selectedStatsProduct'],
)