Closed davidapgar closed 5 years ago
We do, our WorkflowHost
takes a ReceiveChannel
(Signal
) of inputs. Super handy because it also lets the first input be provided asynchronously, which turns out to be a pretty common use case given the way our internal integration works.
Here's the change: https://github.com/square/workflow/pull/282/files#diff-c9e75405c1366dc37bf068c0cd37762c
When rendering a child workflow, the "input" (ie: the
Workflow
) is updated each time (allowing it to handle an update to its input, viaworkflowDidChange
).Currently, the root workflow hosted in a
WorkflowHost
(andContainerViewController
) does not provide any means to update theWorkflow
- it is just the root workflow, so the outside doesn't have a path to update the input.We should consider adding this (I believe the Android version does have support for this)