Skip to content

ComponentRegularMiddleware

Popii


Popii / ComponentRegularMiddleware

Type Alias: ComponentRegularMiddleware<TState, TInput, TLocals>

Section titled “Type Alias: ComponentRegularMiddleware<TState, TInput, TLocals>”

ComponentRegularMiddleware<TState, TInput, TLocals> = (pop, next) => Promise<void> | void

Defined in: types.ts:246

Standard component middleware — receives the component pop context and a next function.

TState = any

TInput = any

TLocals = PopiiLocals & Record<string, any>

ComponentPop<TState, TInput, TLocals>

(err?) => Promise<void> | void

Promise<void> | void