Skip to content

Grid using DataProvider.fromCallbacks() freezing on scroll #10709

Closed

Description

@lanmaster

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?

Activity

  1. miguelatvaadin commented on Apr 19, 2021

    @miguelatvaadin
    Contributor

    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

  2. lanmaster commented on Oct 29, 2021

    @lanmaster
    Author

    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.

  3. lanmaster commented on Nov 12, 2021

    @lanmaster
    Author

    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?

  4. added a commit that references this issue on Jan 25, 2022
    03efa05
  5. vaadin-bot commented on Jan 28, 2022

    @vaadin-bot
    Collaborator

    This ticket/PR has been released with platform 23.0.0.alpha4 and is also targeting the upcoming stable 23.0.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions