flow: ComboBoxLazyDataView does not honour setIdentifierProvider() properly -- items show twice without overridden equals/hashCode
Description of the bug
When I say
multiSelectComboBox.getLazyDataView().setIdentifierProvider( Item::getPrimaryKey )
then I still get duplicates in my lazily loaded data.
When I implement equals and hashCode, everything works as expected.
I do wonder if it’s a documentation issue, but one would assume that this is exactly why he setIdentifierProvider is there in the first place, so that equals/hashCode will not be used.
Expected behavior
I should not need to implement hasCode/equals in order to not have duplicates.
Minimal reproducible example
[will follow]
Versions
- Vaadin / Flow version: 24.3.10
- Java version: n/a
- OS version: n/a
- Browser version (if applicable): n/a
- Application Server (if applicable): n/a
- IDE (if applicable): n/a
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (15 by maintainers)
The issue was assigned to a developer and is currently being investigated