React hooks (optional/advanced) | Developers

React hooks (optional/advanced)

Estimated reading time: Less than a minute

If you are adding specific features to Ledger Live (like staking), you may need to access data through React hooks, that could provide common logic reusable for React components.

You are then free to add them in a libs/ledger-live-common/src/families/mycoin/react.ts file.

See examples like sorting and filtering validators, subscribing to preloaded data observable, or waiting for a transaction to be reflected in account, in the Polkadot React hooks.


Did you find this page helpful?


How would you improve this page for developers?



Getting Started
Theme Features
Customization

Blockchain support