-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
Hi,
I am using the following lens-based approach to propagate a part of the state to the downstream components:
fold
[ T.focus _items _ListItemAction $ T.foreach \_ -> listItemSpec
, listActions
]
The first component renders a list of items, the second doesn't render anything but defines performAction.
When listItemSpec is updating the state the change is correctly propagated to the parent component through the lens, but the performAction in the second component (listActions) always receives the "old" state, the one "before" changes are applied through the _items lense.
How can a parent component update the state after it has been altered by its children?
Thanks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels