[Bug] `deepPreserveProps` results wrong modifier configuration
See original GitHub issueHi. This is a bug report.
Here in this commit you uniqueByName the modifiers that I pass into…
And while fixing #264, this function will be called whenever an update is made.
If I have
popperOptions = {
modifiers: [
{name: "flip", enabled: true},
{name: "flip", enabled: false}
]
}
deepPreserveProps unique them by their name so I got
popperOptions = {
modifiers: [
{name: "flip", enabled: true},
]
}
… but actually what I want is
popperOptions = {
modifiers: [
{name: "flip", enabled: false}
]
}

Thanks.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Tippys that are nested inside interactive tippys teleport on re ...
I think the wrong calculation positions the nested content with ... [Bug] deepPreserveProps results wrong modifier configuration #290.
Read more >Opening Modifier Form QPXPRMLS And Getting Forms Error ...
A custom folder is in place. The issue has the following business impact: Due to this issue, users cannot open the modifiers setup...
Read more >Using causality to diagnose configuration bugs - USENIX
Our results show that comparisons based on dependency sets significantly outperform comparisons based on predicate success or failure, uniquely identi- fying ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@KubaJastrz it already is (they get merged). The problem here is just fixing a memory issue with lots of modifiers being re-added when the instance gets updated. Actually the objects might be the same reference, so we could dedupe with a map instead
So we can’t dedupe with a map, there’s an example in the demo where the reference is always different (in the JSX), but stringify should work in almost all cases, but I’ve merged a fix