NoopWorkflowInterceptor

object NoopWorkflowInterceptor : WorkflowInterceptor

A WorkflowInterceptor that does not intercept anything.

Functions

onInitialState
Link copied to clipboard
open fun <P, S> onInitialState(props: P, snapshot: Snapshot?, proceed: (P, Snapshot?) -> S, session: WorkflowInterceptor.WorkflowSession): S

Intercepts calls to StatefulWorkflow.initialState.

onPropsChanged
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.

onRender
Link copied to clipboard
open fun <P, S, O, R> onRender(renderProps: P, renderState: S, context: BaseRenderContext<P, S, O>, proceed: (P, S, WorkflowInterceptor.RenderContextInterceptor<P, S, O>?) -> R, session: WorkflowInterceptor.WorkflowSession): R

Intercepts calls to StatefulWorkflow.render.

onSessionStarted
Link copied to clipboard
open fun onSessionStarted(workflowScope: CoroutineScope, session: WorkflowInterceptor.WorkflowSession)

Called when the session is starting, before onInitialState.

onSnapshotState
Link copied to clipboard
open fun <S> onSnapshotState(state: S, proceed: (S) -> Snapshot?, session: WorkflowInterceptor.WorkflowSession): Snapshot?

Intercepts calls to StatefulWorkflow.snapshotState.