-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Effects should be treated as a special case of the ::bread/expand lifecycle phase. In an expansion or effect returns a map with an :effects (or ::bread/effects?) key, Bread should process them before moving on to the next expansion. Conversely, any expansions returned from an effect should be run before processing the next effect or expansion.
This is to solve the awkward issue with the current API where we must wait for ALL expansions to finish before ANY effects can start to be processed, even though the intuitive dependency chain may be more nuanced. For example, if we wanted to store the results of an effect and then run a db query based on that, we'd have to do so in an effect body.
Reactions are currently unavailable