NoopWorkflowInterceptor
A WorkflowInterceptor that does not intercept anything.
Functions
Link copied to clipboard
open fun <P, S> onInitialState(props: P, snapshot: Snapshot?, workflowScope: CoroutineScope, proceed: (P, Snapshot?, CoroutineScope) -> S, session: WorkflowInterceptor.WorkflowSession): S
Intercepts calls to StatefulWorkflow.initialState.
Link copied to clipboard
open fun <P, S> onPropsChanged(old: P, new: P, state: S, proceed: (P, P, S) -> S, session: WorkflowInterceptor.WorkflowSession): S
Intercepts calls to StatefulWorkflow.onPropsChanged.
Link copied to clipboard
Link copied to clipboard
open fun <P, R> onRenderAndSnapshot(renderProps: P, proceed: (P) -> RenderingAndSnapshot<R>, session: WorkflowInterceptor.WorkflowSession): RenderingAndSnapshot<R>
Intercept a full rendering pass which involves rendering then snapshotting the workflow tree. This is useful for tracing purposes.
Link copied to clipboard
open fun onSessionStarted(workflowScope: CoroutineScope, session: WorkflowInterceptor.WorkflowSession)
Called when the session is starting, before onInitialState.
Link copied to clipboard
open fun <S> onSnapshotState(state: S, proceed: (S) -> Snapshot?, session: WorkflowInterceptor.WorkflowSession): Snapshot?
Intercepts calls to StatefulWorkflow.snapshotState.
Link copied to clipboard
open fun onSnapshotStateWithChildren(proceed: () -> TreeSnapshot, session: WorkflowInterceptor.WorkflowSession): TreeSnapshot
Intercept calls to StatefulWorkflow.snapshotState including the children calls. This is useful to intercept a rendering + snapshot traversal for tracing purposes.