Guard any async call (Axios, graphql, SDK).
Usage: const guardedCall = useGuardedCall(apiGuard, { onBlocked: toast }); const data = await guardedCall('POST /api/orders', () => axios.post(...));
Optional
Guard any async call (Axios, graphql, SDK).
Usage: const guardedCall = useGuardedCall(apiGuard, { onBlocked: toast }); const data = await guardedCall('POST /api/orders', () => axios.post(...));