useNetworkStatus hook provides real-time information about the RPC node and the current state of the blockchain. It is designed to power network indicators or “Status Dots” in your application.
Features
- Combined Results: Returns both the RPC health status and the latest ledger sequence in a single call.
- Auto-Polling: Refetches data every 30 seconds by default to ensure the information is current.
- Global State: Since it uses a shared query key, the network status is synchronized across all components in your app.

