fix: optimise throttle and hooks
In the process of fixing some hook dependencies, I introduced a bug
which caused the application to rapidly send requests to the Krist
server (luckily I was using a local Krist instance). To raise awareness
of this if it happens again in the future, I added a notification that
appears whenever the rate limit is hit. Ideally, it should never appear
in production.
1 parent cb27e9d commit 4325a01cd12ab639859cab1b5e2ebf12a43e352c
@Drew Lemmy Drew Lemmy authored on 27 Feb 2021
Showing 22 changed files
View
.eslintrc.json
View
package.json
View
pnpm-lock.yaml
View
public/locales/en.json
View
src/components/wallets/SelectWalletCategory.tsx
View
src/components/wallets/SelectWalletFormat.tsx
View
src/components/wallets/SyncWallets.tsx
View
src/components/ws/SyncMOTD.tsx
View
src/components/ws/SyncWork.tsx
View
src/components/ws/WebsocketService.tsx
View
src/krist/api/api.ts
View
src/krist/api/search.ts 0 → 100644
View
src/krist/api/types.ts
View
src/layout/PageLayout.tsx
View
src/layout/nav/AppHeader.tsx
View
src/layout/nav/Search.tsx 0 → 100644
View
src/pages/dashboard/BlockDifficultyCard.tsx
View
src/pages/dashboard/TransactionsCard.tsx
View
src/pages/settings/SettingsTranslations.tsx
View
src/pages/wallets/AddWalletModal.tsx
View
src/utils/index.ts
View
src/utils/promiseThrottle.ts 0 → 100644