If you click 'Trigger Unserializable Action' and have a look in the console you will see the error, with strictActionSerializability set to true in app.module.ts. Full example:
https://stackblitz.com/edit/ngrx-unserializable-action-bug
There are no unserializable types in the action I am dispatching. I wouldn't expect any errors.
NgRx: 8.0.1
Angular: 8.0.3
Browser: Chrome 75
[ X ] Yes (Assistance is provided if you need help submitting a pull request)
[ ] No
A class instance is unserializable.
You can solve this by spreading it into a JS object:
const toSend = {...new UpsertUserSkillsModel('84c4e12e-af62-4772-9386-ef9af46f88d8', model)};
Hi @Samywamy10 , do you happen to know how to work with File type Action parameters? I'm trying to do
this.store.dispatch(PromotionActions.uploadFile({file: file}));
I tried the spreading method but no luck.
@bfwg a File is not serializable.
So there is no way to pass a File as the parameter of an Action while the strictActionSerializability is true?
Correct @bfwg
Thanks!
Most helpful comment
Correct @bfwg