sandstone icon indicating copy to clipboard operation
sandstone copied to clipboard

`onConflict` config option does not apply to implicitly created functions

Open GrantGryczan opened this issue 3 years ago • 1 comments

Practical example:

image

image

image

image

GrantGryczan avatar Dec 15 '21 06:12 GrantGryczan

This is actually a non-trivial problem. To fix it correctly, the "implicitely created function" should take the conflict strategy of its parent, or the general one. However, I'd need to rewrite some critical parts of Sandstone (this is planned anyway). But I won't take that risk.

Therefore, I fixed it partially: it will always default to the general strategy if it is "throw", "replace", "ignore" or "warn", but it won't take the conflict strategy of the parent.

TheMrZZ avatar Dec 19 '21 10:12 TheMrZZ