A thin wrapper that uses ApiRateGuard for fetch() calls and gives you a single place to react to runaway bursts.
Usage: const guardedFetch = useGuardedFetch(apiGuard, { onBlocked: showToast }); const resp = await guardedFetch('/api/items');
Optional
A thin wrapper that uses ApiRateGuard for fetch() calls and gives you a single place to react to runaway bursts.
Usage: const guardedFetch = useGuardedFetch(apiGuard, { onBlocked: showToast }); const resp = await guardedFetch('/api/items');