Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(query): suspense query generation #1100

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

ezequiel
Copy link
Contributor

@ezequiel ezequiel commented Dec 5, 2023

Status

READY

Fix #1098

Description

There was a bug that didn't allow the generation of strictly the Suspense query variants. i.e. it wouldn't generate anything if useQuery: false was passed

Steps to Test or Reproduce

module.exports = {
  api: {
    input: '../docs/swagger.json',
    output: {
      target: 'api.ts',
      mode: 'split',
      client: 'react-query',
      override: {
        query: {
          useQuery: false,
          useInfinite: false,
          useSuspenseQuery: true,
          useSuspenseInfiniteQuery: true,
        },
      },
      workspace: 'src/api',
    },
  },
};
  • Verified strictly useSuspenseQuery and useSuspenseInfiniteQuery hooks were generated

@melloware

This comment was marked as off-topic.

@melloware melloware added this to the 6.22.0 milestone Dec 5, 2023
@melloware melloware added the bug Something isn't working label Dec 5, 2023
@anymaniax anymaniax merged commit 36d622b into orval-labs:master Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot generate strictly suspense query hooks
3 participants