Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

middleware warning when using rtk-query #293

Open
justindomingue opened this issue Jun 5, 2023 · 0 comments
Open

middleware warning when using rtk-query #293

justindomingue opened this issue Jun 5, 2023 · 0 comments

Comments

@justindomingue
Copy link

justindomingue commented Jun 5, 2023

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.

@justindomingue justindomingue changed the title rtk-query support middleware warning when using rtk-query Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant