UXP reuses html elements?

Does UXP underlying engine reuse previously created nodes as some kind of performance optimisation?
I have am using react-select plugin, for every Option inside the select it attaches a unique callback to pick an element. After filtering options, in UXP wrong element shows up as selected. That would only happen if wrong callback was called, which would be when element was reused.

Visually everything looks fine, contents of html elements do change, but debugging I have noticed that properties on the html elements stay the same, which could explain above behaviour if onClick didn’t change correctly.