anvil/striker-ui/types/GetResponse.d.ts
Tsu-ba-me 0c41c45903 fix(striker-ui): upgrade swr from 0.5.7->1.2.2
There's a bug where the onSuccess property of SWRConfiguration
causes a crashed when it is undefined. Seems to be fixed in later
versions, so doing a simple upgrade patches the problem.

This issue caused the Dashboard to show nothing.
2022-11-28 14:37:17 -05:00

6 lines
109 B
TypeScript

declare type GetResponses<T> = {
data: T | undefined;
error: Error | undefined;
isLoading: boolean;
};