The whole context in one read, and the escape hatch behind every other hook here. Reach for a narrower hook unless a component needs several slices at once, since this one re-renders on any change to any of them.
with no CantonConnectProvider above it.
const { sdk, config } = useCantonConnectContext()await sdk.listAccounts() Copy
const { sdk, config } = useCantonConnectContext()await sdk.listAccounts()
The whole context in one read, and the escape hatch behind every other hook here. Reach for a narrower hook unless a component needs several slices at once, since this one re-renders on any change to any of them.