ianwremmel / tracks-interactor

MIT License
0 stars 1 forks source link

Automerge contexts #27

Open ianwremmel opened 5 years ago

ianwremmel commented 5 years ago

it's kinda weird that the interactor at the beginning of an organized chain needs to accept the inputs for the last iteractor. instead, the organizer should combine the result interfaces. The organizer may still need to accept inputs for tail interactors, but the lead interactor shouldn't if it doesn't have a use for it.

ianwremmel commented 5 years ago

This might mean we need two different ways to return contexts:

  1. just return a POJO that will be merge a la Object.assign
  2. use immer to allow more specific manipulation