Skip to content

[BUG] useCustomMutation and useCustomQuery hooks don't forward body and parameters in v3.9.1 #2480

@lisunovdv

Description

@lisunovdv

Summary

useCustomMutation and useCustomQuery hooks don't forward body and parameters. It was broken by this PR: https://github.com/SalesforceCommerceCloud/pwa-kit/pull/2092/files

Steps To Reproduce

args.body and args.parameters are missed here:

Expected result

body and parameters are forwarded

Actual result

body and parameters are not forwarded

System Information (as applicable)

Browser: Chrome
Node version: v22.15.0
pwa-kit version: v3.9.1
Desktop OS: MacOS

Additional information

It was broken and fixed previously in this way:

Image

It looks like the same changes are required again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions