Closed malikalahfaoui closed 2 years ago
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:
<QueryClientProvider>
component.<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 👍