API reference > @kontsedal/olas-devtools > DevtoolsStore > attach
DevtoolsStore.attach() method
Subscribe to the given root's debug bus. Returns the unsubscribe. The caller (typically the React component) is responsible for invoking it on unmount.
Signature:
typescript
attach(root: Pick<Root<unknown>, 'debug'>): () => void;Parameters
Parameter | Type | Description |
|---|---|---|
root | Pick<Root<unknown>, 'debug'> |
Returns:
() => void