Skip to content

Introduce request.fetch feature to createJson* methods#574

Merged
AlexandrHoroshih merged 3 commits into
masterfrom
feat-request-configs
Jan 29, 2026
Merged

Introduce request.fetch feature to createJson* methods#574
AlexandrHoroshih merged 3 commits into
masterfrom
feat-request-configs

Conversation

@AlexandrHoroshih
Copy link
Copy Markdown
Member

@AlexandrHoroshih AlexandrHoroshih commented Jan 29, 2026

Allows to modify any of the Request Config fields in the createJson* methods

    const query = createJsonQuery({
      request: {
        url: 'http://api.salo.com',
        method: 'GET',
        fetch: {
          mode: 'cors',
          cache: 'no-cache',
          referrerPolicy: 'no-referrer',
        },
      },
      response: { contract: unknownContract },
    });

@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 29, 2026

Deploy Preview for farfetched ready!

Name Link
🔨 Latest commit 08d0876
🔍 Latest deploy log https://app.netlify.com/projects/farfetched/deploys/697b37f538e74000087617d7
😎 Deploy Preview https://deploy-preview-574--farfetched.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Member

@igorkamyshev igorkamyshev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Все круто, в телеге оставил пару вопросов

@AlexandrHoroshih AlexandrHoroshih merged commit d5b3011 into master Jan 29, 2026
10 checks passed
@AlexandrHoroshih AlexandrHoroshih deleted the feat-request-configs branch January 29, 2026 10:41
@AlexandrHoroshih AlexandrHoroshih changed the title Introduce request.fetchOptions feature to createJson* methods Introduce request.fetch feature to createJson* methods Jan 29, 2026
@AlexandrHoroshih AlexandrHoroshih review requested due to automatic review settings March 23, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants