c12 icon indicating copy to clipboard operation
c12 copied to clipboard

key merge strategy

Open pi0 opened this issue 1 year ago • 3 comments
trafficstars

(this is a primary draft to explain the idea)

Related: #138, #87

Sometime default defu merging strategy is not ideal. We could allow a custom defu merger but it is not initiative.

I was thinking to try with an object syntax like this:

{
  mergeStrategy: {
    modules: (a, b) => a.concat(b)
  }
}

(it could be backported to defu)

pi0 avatar Mar 06 '24 15:03 pi0