Skip to main content
Version: 2.x

FASTContextRequestStrategy type

@microsoft/fast-element/context.js > FASTContextRequestStrategy

FASTContextRequestStrategy type

A strategy that controls how all Context.request API calls are handled.

Signature:

export declare type FASTContextRequestStrategy = <T extends UnknownContext>(target: EventTarget, context: T, callback: ContextCallback<ContextType<T>>, multiple: any) => void;

References: UnknownContext, ContextCallback, ContextType

Remarks

By default this is handled via Context.dispatch, which dispatches a ContextEvent.