Installation
Headless primitives for fetching and displaying energy measurement data
@octopus-energy/measurements provides headless React primitives for fetching,
transforming, and displaying energy measurement data from the Kraken GraphQL
API.
Install
npm i @octopus-energy/measurements @tanstack/react-query| Peer dependency | Version | When |
|---|---|---|
@tanstack/react-query | ^5.59.16 | Using the /react-query entry point |
nuqs | ^2.0.0 | Using the /storage/nuqs entry points |
react | ^19.0.0 | Using useTimeframe and usePreferences hooks |
What are you building?
The package supports two independent features that share the same data-fetching layer: