create-client
create-client copied to clipboard
Feat/react query next
| Q | A |
|---|---|
| Branch? | main for features / current stable version branch for bug fixes |
| Tickets | #... |
| License | MIT |
| Doc PR | api-platform/docs#... |
It probably lacks the usage of:
- The
<QueryClientProvider>component. - The
<Hydrate>component.
Why React Query and not SWR... or just nothing?
@dunglas IMHO, react-query is the preferred fetcher nowadays (and has more features than SWR). It was your own proposal to use a fetcher: https://github.com/api-platform/client-generator/issues/255, and I think it's a good idea since it has a very good cache system.
Let's use react query then 👍