Closed nopitown closed 3 months ago
Since an issue (#121 ) regarding this problem has been created again, it seems better to address it quickly, so I will take over.
@seriouslag I removed the queryKey parameter from prefetch.ts. I have also confirmed that the queryKey matches between the prefetchQuery and useQuery generated in the Next.js sample app.
So when is this getting released? This issue makes it so prefetch is unusable right now for us. It's been approved for 2 weeks.
@TomWebbio Sorry for the delay. I was sick for the past two weeks and couldn't find time to release it. I will release it now.
Attempting to fix https://github.com/7nohe/openapi-react-query-codegen/issues/102. I'll revisit it tomorrow since I'm still getting familiar with the code. The ultimate goal here is to allow prefetch hooks to be as flexible as query hooks are and create the same key structure so it is possible to use the cache.