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; this one hands back the config, the connection to select off, and the three actions.
with no CantonConnectProvider above it.
const { config, connection } = useCantonConnectContext()const snapshot = connection.getSnapshot() Copy
const { config, connection } = useCantonConnectContext()const snapshot = connection.getSnapshot()
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; this one hands back the config, the connection to select off, and the three actions.