Skip to content

function onProviderUsed view code

onProviderUsed(
    listener: (root: Root, provider: Provider<unknown>) -> ()
): () -> ()

Called when a root uses a provider. The listener callback receives the root along with the used provider

Parameters

listener: (root: Root, provider: Provider) -> ()

Fired when a root uses a provider. The listener callback receives the root along with the used provider

Returns

() -> ()

A callback that when called removes the listener.