-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using deep-assign package #15
Comments
LOL. That kinda of message ought to be in the readme. Thanks for finding that. |
I found one more issue related to deep-assign - it doesn't make a deep clone of an object. This manifested itself as having the same refererence for an object property within both My workaround for this is to change a function in service-module/mutations.js to use clone function from ramda instead of deepAssign. setCurrent (state, item) {
let id = isObject(item) ? item[idField] : item
state.currentId = id
// state.copy = deepAssign({}, item)
state.copy = R.clone(item)
}, |
Found also |
@ndamjan Thanks for discovering all of this. Since the cloning is the only part of Ramda that we would be using, I'd prefer to go with a standalone solution like https://www.npmjs.com/package/lodash.clonedeep to keep the package size smaller. |
Closed via #35 and released as v0.8.0 |
I stumbled upon some strange exception where a nested field from a JSON object was missing... Can't reproduce it currently in JSFiddle.
To me it seems some like cloning issue so I checked where it happens, and the responsibility is on deep-assign package.
According to https://github.com/sindresorhus/deep-assign:
Replacing it with object-assign doesn't work. I will see some alternatives and investigate further...
The text was updated successfully, but these errors were encountered: