Skip to content
Alchemy Logo

watchBundlerClient

function watchBundlerClient(config): (onChange) => any;

Defined in: account-kit/core/src/actions/watchBundlerClient.ts:20

Watches for changes to the bundler client within the given configuration and triggers a callback when changes occur.

import { watchBundlerClient } from "@account-kit/core";
// see createConfig for more information on how to create a config
import { config } from "./config";
 
watchBundlerClient(config)(console.log);

ParameterTypeDescription

config

AlchemyAccountsConfig

The configuration object containing the core store

A function accepting a callback function to invoke when the bundler client changes and returns a function to unsubscribe from the store

(onChange): any;

ParameterType

onChange

(bundlerClient) => void

any

Was this page helpful?