TreeGrid with filter spams server

I have a TreeGrid with a TextField filter.
When input is non-empty, I filter and expand all folders, and when input is empty I clear filter and collapse all folders.

When I clear with this, I get a never-ending request/response loop:

treeDataProvider.clearFilters();
treeGrid.collapse(allFolders);

The application still works though. If I enter some filter text again, it stops spamming the server. If I clear it, the spamming starts again.
When I switch the order, it works just fine.

Might be a bug in the flow-components, worth to create a ticket for.

I guess you’re right. I’ve registered https://github.com/vaadin/platform/issues/4420