Skip to content

middleware warning when using rtk-query #293

Open
@justindomingue

Description

@justindomingue

has anyone been able to make webext-redux work with rtk-query? When triggering a query from the popup, I see a network request resolve properly, and the store updated, but I also see this warning even though the middleware is added in the background script.

Warning: Middleware for RTK-Query API at reducerPath "xxx" has not been added to the store.
You must add the middleware for RTK-Query to function correctly!

Triggered in buildInitiate.ts, which I believe is because dispatch returns a Promise in webext-redux.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions