🔗 Function: provideContexts()
provideContexts<
P,K>(contexts): (host) =>Cleanup
Defined in: src/core/context.ts:98
Provide a context for descendant component consumers
🔗 Type Parameters
🔗 P
P extends ComponentProps
🔗 K
K extends string | number | symbol
🔗 Parameters
🔗 contexts
Array of contexts to provide
🔗 Returns
Function to add an event listener for ContextRequestEvent returning a cleanup function to remove the event listener
(
host):Cleanup
🔗 Parameters
🔗 host
Component<P>
🔗 Returns
🔗 Since
0.13.3