Skip to content

Set params in onRequest #477

@xjccc

Description

@xjccc

Environment

[email protected]

Reproduction

const _customFetch = $fetch.create({});
    const { path } = await _customFetch(getURL("echo"), {
      onRequest(ctx) {
        ctx.options.params = {
          d: 4,
        }
      }
    });

Describe the bug

When set params in onRequest.

The context.request is not withQuery.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions