-
Notifications
You must be signed in to change notification settings - Fork 670
Closed
Description
I'm a bit stuck on how one would go about memorising the following selector using this library:
export function selectItem(items, id) {
const item = items[id]
return {
id,
...item && {
children: item.children.map((id) => selectItem(items, id))
}
}
}
Currently if any item in the items state is modified all of the selections need to be rebuilt.
Any suggestions on how to go about with these kind of scenarios?
A more complete example: https://gist.github.com/ronag/bc8b9a33da172520e123
Metadata
Metadata
Assignees
Labels
No labels