mergeProps deeply?
How deeply does merge props actually merge objects? Could I do?
where
props
has a props myObj
with the values I want to default?
2 Replies
MergeProps does shallow merges.
But props are only reactive on one level, so you could use something like
mergeProps(defaults, deepMerge(defaults, props));
to do a deep merge.Thanks, I think I can get the job done with shallow merge like this