You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I call the update method on the store, the entity gets mutated from the current structure I have. This is due to the constructor call in the updateEntities.js file.
I have a custom constructor for my entities which takes in the properties of the object instead of a raw object. Passing in "merged" to my constructor causes the id field to get set to the entire object since it is the first parameter.
Is this a regression?
No
Description
Whenever I call the update method on the store, the entity gets mutated from the current structure I have. This is due to the constructor call in the updateEntities.js file.
I have a custom constructor for my entities which takes in the properties of the object instead of a raw object. Passing in "merged" to my constructor causes the id field to get set to the entire object since it is the first parameter.
Example of my object:
Calling update on my entity causes param1 to receive the entire object, thus I get a new object that looks like:
{ property1: { property1: 1, property2: 'someString' }, property2: undefined }
Thank you for your help on this!
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in
No response
Anything else?
No response
Do you want to create a pull request?
No
The text was updated successfully, but these errors were encountered: