GridUnbufferedInlinedEditor remove first items after an item update

I am following this GridUnbufferedInlinedEditor example.

  1. This grid show all Persons.

  2. But each time i double click on a row and update one of the columns, and click another row to save, first row becomes empty.
    Click to update:


    Click to update another row.

  3. But if i click the first empty row, it seems that new updated data is there

  4. If i only double click and not editing at all, all items are showed perfectly.

Grid get data from a static list

 grid.setItems(List.of(
            new Person(1, "Matthew", "test", "test@mail.com"),
            new Person(2, "Lucas", "test", "test@mail.com"),
            new Person(3, "John", "test", "test@mail.com")
    ));

I use vaadin flow 24.
What I have done wrong?

many thanks
sLawalata

It seems i need to add grid.getDataProvider().refreshAll(); to trigger grid to refresh :cry:

Is it a correct answer? But why it works without it in code example?