workflow-kotlin
workflow-kotlin copied to clipboard
A Swift and Kotlin library for making composable state machines, and UIs driven by those state machines.
See [go/compose-based-workflows](https://go/compose-based-workflows)
using this as a snapshot branch to test some stuff.
The `renderings: Flow` provided to `WorkflowLayout.take()` can fire a lot more often than is useful, especially in large apps that don't use `initialState` / `StateFlow.value` effectively. Can `take` buffer what...
Otherwise, worker output (or anything sending to the sink like actions too) could happen during a render pass and we would get a lot of: ``` java.lang.UnsupportedOperationException: Expected sink to...
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [gradle/gradle-build-action](https://redirect.github.com/gradle/gradle-build-action) | action | digest | `29c0906` -> `ac2d340` | --- ### Configuration...
I'm giving my app logging of every `WorkflowAction` fired, via `RenderContextInterceptor.onActionSent`. I find that the `toString()` of an action fired by a `Worker` is prefixed `sendAndAwaitApplication(com.squareup.workflow1.EmitWorkerOutputAction(worker=`, and completely omits any...
Check our internal ActionLogger and WorkflowSystemTracer and create APIs so that those implementations are straightforward and show 0 knowledge of workflow internals. Some examples: - to get access to actions...