mirror of
https://github.com/getAlby/hub.git
synced 2026-08-13 12:33:39 +02:00
* fix: reduce wallet balance/transaction polling interval to 10s The wallet dashboard polls /api/balances and /api/transactions every 3s via SWR refreshInterval. For hubs left open in a browser tab, this produces a high, continuous volume of identical requests around the clock with little UX benefit, since SWR already revalidates on window focus. Raise the interval for the balances and transactions-list hooks to 10s. The single-transaction hook (used while waiting for a specific invoice to settle) is intentionally left at 3s, where fast updates matter and polling is short-lived. * refactor: drop poll-interval comments, rationale moved to PR |
||
|---|---|---|
| .. | ||
| .husky | ||
| platform_specific | ||
| public | ||
| src | ||
| types | ||
| .env.local.example | ||
| .prettierignore | ||
| .prettierrc | ||
| commitlint.config.js | ||
| components.json | ||
| eslint.config.mjs | ||
| frontend.go | ||
| index.html | ||
| lint-staged.config.js | ||
| package.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
| yarn.lock | ||