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

feat(query): query clients can use fetch as an http client #1514

Merged

Conversation

soartec-lab
Copy link
Member

Status

READY

Description

follow up #1387
I made the query client to be able to use fetch as an http client.
I gonna add those sample apps ans tests with other PR.

Related PRs

none

Todos

  • Tests
  • Documentation
  • Changelog Entry (unreleased)

Steps to Test or Reproduce

You can check by setting fetch to httpClient along with query clients.

import { defineConfig } from 'orval';

export default defineConfig({
  petstoreFile: {
    input: {
      target: './petstore.yaml',
    },
    output: {
      mode: 'tags-split',
      client: 'react-query',
      httpClient: 'fetch',
      target: 'src/gen/endpoints',
      schemas: 'src/gen/model',
      baseUrl: 'http://localhost:8000',
    },
  },
});

@soartec-lab soartec-lab added enhancement New feature or request tanstack-query TanStack Query related issue labels Jul 13, 2024
@soartec-lab soartec-lab added this to the 6.32.0 milestone Jul 13, 2024
@soartec-lab soartec-lab merged commit 1e20e51 into orval-labs:master Jul 14, 2024
2 checks passed
@soartec-lab soartec-lab linked an issue Jul 14, 2024 that may be closed by this pull request
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tanstack-query TanStack Query related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support fetch client
2 participants