orval is able to generate client with appropriate type-signatures (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification, either in yaml or json formats. 🍺
Set up a React project using React Query and Orval for API generation.
Try to configure the placeholderData option for React Query in the Orval config.
Notice that there is no clear documentation or option in Orval's config for setting placeholderData.
What happens?
I am unable to configure the placeholderData option for React Query through the Orval configuration file. The generated hooks do not include placeholderData, and there is no option available in the Orval configuration to add it.
What were you expecting to happen?
I expected to find an option in the Orval configuration that allows me to define placeholderData for React Query hooks so that it can be automatically included in the generated hooks.
Any logs, error output, etc?
No error output, just missing configuration in the generated code.
Any other comments?
It would be helpful to have documentation or an example showing how to set up placeholderData within the Orval config for React Query.
i dont remember seeing placeholderData before I wonder if that is a newer TanStack Query feature and it was just never implemented in Orval. PR is welcome!
What are the steps to reproduce this issue?
placeholderData
option for React Query in the Orval config.placeholderData
.What happens?
I am unable to configure the
placeholderData
option for React Query through the Orval configuration file. The generated hooks do not includeplaceholderData
, and there is no option available in the Orval configuration to add it.What were you expecting to happen?
I expected to find an option in the Orval configuration that allows me to define
placeholderData
for React Query hooks so that it can be automatically included in the generated hooks.Any logs, error output, etc?
No error output, just missing configuration in the generated code.
Any other comments?
It would be helpful to have documentation or an example showing how to set up
placeholderData
within the Orval config for React Query.What versions are you using?