tshaddix / webext-redux

A set of utilities for building Redux applications in Web Extensions.
MIT License
1.22k stars 179 forks source link

middleware warning when using rtk-query #293

Open justindomingue opened 1 year ago

justindomingue commented 1 year ago

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.