Skip to content

Commit d357edc

Browse files
committed
docs: add note about official support for useFetcher in React integration section
1 parent bb58591 commit d357edc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3573,6 +3573,8 @@ function notifyAdmins(healthData: any) {
35733573
35743574
Integrate `fetchff` with React Query to streamline your data fetching:
35753575
3576+
> **Note:** Official support for `useFetcher(url, config)` is here. Check React Integration section above to get an idea how to use it instead of SWR.
3577+
35763578
```tsx
35773579
import { createApiFetcher } from 'fetchff';
35783580
import { useQuery } from '@tanstack/react-query';
@@ -3605,6 +3607,8 @@ export const useProfile = (id: string) => {
36053607
36063608
Combine `fetchff` with SWR for efficient data fetching and caching.
36073609
3610+
> **Note:** Official support for `useFetcher(url, config)` is here. Check React Integration section above to get an idea how to use it instead of SWR.
3611+
36083612
Single calls:
36093613
36103614
```typescript

0 commit comments

Comments
 (0)