Skip to content

Regression in 2.9.0: TypeError in serializeQueryArgs after ~60s runtime #5084

Description

@milofrw

After upgrading Redux Toolkit from 2.8.2 → 2.9.0, we’re encountering a runtime TypeError related to serializeQueryArgs.

This does not surface in type checking or during build, but it consistently appears at runtime after almost exactly 60 seconds.

Image Image

Possible Cause - It looks like serializeQueryArgs is being called on an undefined endpointDefinition inside queryArgsApi.endpointDefinition.serializeQueryArgs.
This may be related to changes in RTK Query’s buildCreateApi defaults between 2.8.2 → 2.9.0.

Workaround - Downgrading back to 2.8.2 resolves the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs ReproductionReport is waiting on a reproductionRTK-QueryIssues related to Redux-Toolkit-Query

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions