Comments (9)
An update. Looks like both problem actions are actually aliases. The response is:
{ error: null }
from webext-redux.
Seems like I've figured it out. This happens when I don't return a dispatch
within a redux-thunk function. For instance, if I have a thunk as follows:
export const someActionCreator = () => {
return (dispatch, getState) => {
if (<some_condition>) {
return;
}
return dispatch({ type: SOME_ACTION });
};
};
That premature return
raises the error in this issue. If I swap it out with return dispatch({ type: '' });
, it seems to work. This is strange though, and it seems like it's completely kosher to not dispatch (conditional dispatches) from within a thunk (unless I'm mistaken about that - I am still pretty new to redux).
from webext-redux.
So the issue seems to relate to the default promiseResponder
here. If you don't call dispatch, then it looks like the result is returned as undefined (makes sense). I'm adding a simple work around now. Watch for a PR in the next couple minutes.
from webext-redux.
Awesome thank you @tshaddix! Appreciate the quick response!
from webext-redux.
This will be included in 0.0.8
. Building release now.
from webext-redux.
💃
from webext-redux.
Done! Thanks for reporting, @vhmth !
from webext-redux.
https://www.opentest.co/share/a54ffc8059c911e6a1ffdd04f7a207b4
from webext-redux.
Sounds great! I'll be in SF in a couple weeks.
Also, sweet extension. Wonderfully clean experience!
from webext-redux.
Related Issues (20)
- Hot reloading using yarn start leads to error - chrome.runtime.connect() called from a webpage must specify an Extension ID
- Ensure chrome api available before checking lastError
- Mozilla WebExtension-Polyfill support? HOT 3
- What is way to creating Chrome extention with default create-react-app?
- Cannot read properties of undefined (reading 'error') HOT 1
- Storyful is using webext-redux
- wrapStore tabs.query has extra argument
- "can't access dead object" while developing on Firefox
- saga middleware typescript problem
- Question: Advise for hot reloading in development HOT 1
- Doesn't work with react-redux v8 HOT 3
- Is manifest version 3 support planned? HOT 4
- How to fix Uncaught TypeError: Cannot read properties of undefined (reading 'state') HOT 7
- Data not persisting HOT 2
- React Redux State updated value not showing on page refresh
- Is this repo still actively maintained & supported?
- middleware warning when using rtk-query
- useselector not working despite providing store HOT 1
- How to re-sync store from "content script" with background.js (service worker)? HOT 2
- Cannot install webext-redux next to react-redux
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webext-redux.