Yang
05/05/2020, 2:18 PMFlow
worker go beyond a single Action
? I want to subscribe to a Flow
for the lifetime of a workflow, but it looks like any subsequent action
would cancel the Flow
immediately and you have to re-subscribe to the flow
in the next render
call. I remember reading that it’s possible to subscribe to external event sources, but this is not how I expect Flow
worker to work so I’m probably doing something wrong.Ray Ryan
05/05/2020, 3:48 PMrunningWorker
call on each render
.Ray Ryan
05/05/2020, 3:48 PMdoesSameWorkAs
returns true, and the optional key
param to runningWorker
matches.Ray Ryan
05/05/2020, 3:49 PMrunningWorker
call as the first line of my render
, before when(state)
or whatever.Yang
05/05/2020, 4:36 PMrunningWorker
call in one of the when(state)
branch to avoid re-subscribing to the flow. The way it memorises existing worker is cool and it makes things look more declarative 👍Zach Klippenstein (he/him) [MOD]
05/05/2020, 7:34 PM