You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Grid using DataProvider.fromCallbacks() freezing on scroll #10709
When i use DataProvider.fromCallbacks() scrolling down grid are freezing. As i think DataProvider start synchronous fetch operations. It is very unuseful. Can DataProvider use async mode?
thank you very much for your question. DataProvider uses the flow communication mechanism which is synchronous. If you want to work in asynchronous mode then you should use the push feature (https://vaadin.com/docs/latest/flow/advanced/server-push).
Anyway I will add this to the enhancements backlog as I understand that this would be useful in some cases.
Vaadin 14. I use Push already. There is a question about CallbackDataProvider: is subject blocking UI thread when fetching new data from service? Or it first fetch data async and only after that update UI?
In my case sometimes UI freezes when grid scrolling, and blue line starts running from top left to right.
In my case CallbackDataProvider fetches data from heavy and slow service. There is blue line at page top occured almost always on fetching data. Can fetchFromBackEnd be more asyncronous? May be it can fetch data in parallel thread and use some callback when data is ready and it is time to update UI?
Activity
miguelatvaadin commentedon Apr 19, 2021
Hi @lanmaster,
thank you very much for your question. DataProvider uses the flow communication mechanism which is synchronous. If you want to work in asynchronous mode then you should use the push feature (https://vaadin.com/docs/latest/flow/advanced/server-push).
Anyway I will add this to the enhancements backlog as I understand that this would be useful in some cases.
Best regards
lanmaster commentedon Oct 29, 2021
Vaadin 14. I use Push already. There is a question about CallbackDataProvider: is subject blocking UI thread when fetching new data from service? Or it first fetch data async and only after that update UI?
In my case sometimes UI freezes when grid scrolling, and blue line starts running from top left to right.
lanmaster commentedon Nov 12, 2021
In my case CallbackDataProvider fetches data from heavy and slow service. There is blue line at page top occured almost always on fetching data. Can
fetchFromBackEndbe more asyncronous? May be it can fetch data in parallel thread and use some callback when data is ready and it is time to update UI?feat: Add async mode to flush operation and API to turn it on (#12378)
vaadin-bot commentedon Jan 28, 2022
This ticket/PR has been released with platform 23.0.0.alpha4 and is also targeting the upcoming stable 23.0.0 version.