Replies: 1 comment
-
for now I just use: const defu = createDefu((obj, key, value) => {
if (Array.isArray(value) && Array.isArray(obj[key])) {
obj[key] = value; // comment if you want to retain value
return true
}
}); see working example |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Array concatention may not be ideal default behaviour. would be great to have a config option to not merge arrays by default, but rather have arrays replacing arrays
Beta Was this translation helpful? Give feedback.
All reactions