Skip to content

extractRehydrationInfo giving "TypeError: iterator method is not callable" since Redux Toolkit 2.7.0 #4981

@pmk1c

Description

@pmk1c

We're using RTK Query with extractRehydrationInfo to persist state with Redux Persist.

Since Version 2.7.0 we're getting a TypeError: iterator method is not callable, when rehydrating from a persisted state. It looks like this commit is responsible: 9eb51e9

I think line 541 needs to be fixed by using provided.tags instead of provided, but I'm not sure.

I just downgraded Redux Toolkit to 2.6.1 for now.

Activity

added a commit that references this issue on May 13, 2025
sheuertz

sheuertz commented on May 27, 2025

@sheuertz

We are seeing this as well, with the same use case.

markerikson

markerikson commented on May 27, 2025

@markerikson
Collaborator

Very likely. I'm on travel atm, but if someone can file a PR to make that change we can try to get it in.

colinsullivan

colinsullivan commented on May 29, 2025

@colinsullivan

I was seeing a slightly different error in the console with the same root cause.

Can't repro in 2.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @colinsullivan@markerikson@pmk1c@sheuertz

        Issue actions

          extractRehydrationInfo giving "TypeError: iterator method is not callable" since Redux Toolkit 2.7.0 · Issue #4981 · reduxjs/redux-toolkit