improve web ui
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* The slice of a React Query result a presentational view needs: just enough to
|
||||
* drive <QueryState> + render the data. A `UseQueryResult` satisfies it directly
|
||||
* (so containers pass the query through), and stories can hand-build one without
|
||||
* mocking the network.
|
||||
*/
|
||||
export interface Loadable<T> {
|
||||
data?: T;
|
||||
isLoading: boolean;
|
||||
error: unknown;
|
||||
refetch?: () => void;
|
||||
}
|
||||
Reference in New Issue
Block a user