Freezes on empty action payload
See original GitHub issueHi,
This one is weird. When using an action creator with an empty payload created using redux-actions
, the application badly fails and freezes.
import { createAction } from 'redux-actions';
// dispatching this will freeze the app
const myEmtpyPayloadAction = createAction('HI');
No payload field is still FSA-compliant, so this should’n’t happen. I can’t tell where this freeze however.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Freezes on empty action payload #57 - klarna/electron-redux
Hi,. This one is weird. When using an action creator with an empty payload created using redux-actions , the application badly fails and...
Read more >State is Empty but the Action is loading the data - Stack Overflow
State is Empty but the Action is loading the data ; import { FETCH_DATAS } ; export default ; switch(action.type) ; return action.payload...
Read more >Redux actions - Fullstack React
Recall that the only way we can change data in Redux is through an action creator. ... we'll pass extra data along as...
Read more >Writing Reducers with Immer | Redux Toolkit - JS.ORG
Not only are there no more spread operations that can be mis-written, but Immer freezes state automatically as well.
Read more >Actions and reducers: updating state - Human Redux
In Redux all changes to the application state happen via an "action. ... I always put these types of values in a property...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This happens when the serializer chokes on bad input. Most likely you’ve attached a DOM event to your action. When these hit the IPC serializer, (I suspect because of the cycles in the object-graph of events), the serializer hangs.
For instance, if you
instead of
you’ll blow up the serialization process.
Thanks for the input! Feel free to reopen if @biggyspender’s hint didn’t work for you.