We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af9c4ca commit 2d2f863Copy full SHA for 2d2f863
examples/coin-app/src/pages/Home/CurrencyList.tsx
@@ -2,8 +2,8 @@ import { Link } from '@anansi/router';
2
import {
3
AsyncBoundary,
4
NetworkError,
5
- useCache,
6
useFetch,
+ useQuery,
7
useSuspense,
8
} from '@data-client/react';
9
import { CurrencyResource, queryCurrency } from 'resources/Currency';
@@ -16,7 +16,7 @@ export default function CurrencyList() {
16
useFetch(StatsResource.getList);
17
useSuspense(CurrencyResource.getList);
18
useSuspense(StatsResource.getList);
19
- const currencies = useCache(queryCurrency, {});
+ const currencies = useQuery(queryCurrency, {});
20
if (!currencies) return null;
21
return (
22
<table>
0 commit comments