mirror of
https://github.com/diced/zipline.git
synced 2025-05-11 18:36:02 +02:00
fix: a bunch of random stuff
This commit is contained in:
parent
dcb4a4e9e7
commit
12fcff1a14
82 changed files with 9015 additions and 5875 deletions
|
@ -25,9 +25,6 @@ const fetcher = async ([url, options]: [string, ApiStatsOptions]) => {
|
|||
};
|
||||
|
||||
export function useApiStats(options: ApiStatsOptions = {}) {
|
||||
if (!options.from && !options.to)
|
||||
return { data: undefined, error: undefined, isLoading: false, mutate: () => {} };
|
||||
|
||||
const { data, error, isLoading, mutate } = useSWR<Response['/api/stats']>(['/api/stats', options], {
|
||||
fetcher,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue