Skip to content

Cache models in client-side when navigating between views #2392

Not planned

Description

When I navigate between views in the browser and no change has occurred in the models backing those views, I want Flow to use cached data (and possibly cached renders) so that models are not re-downloaded from the server.

This lets Flow applications have smooth navigations by avoiding the pause created as a result of downloading models (which causes Polymer to fire all observers) and re-rendering the same data. This becomes noticeable when navigating between views with large amounts of data.

Conversation: https://vaadin.slack.com/archives/C6QH442QY/p1504855767000151

Activity

  1. Legioth commented on Sep 14, 2017

    @Legioth
    Member

    This is a trade-off between client-side responsiveness and server-side memory usage.

    My gut feeling is that the default should still be to discard anything as quickly as possible to avoid "leaking memory", but we should also make it easy for application developers to choose the opposite.

  2. added this to the Not Planned milestone on Apr 18, 2018
  3. totally-not-ai commented on Dec 5, 2026

    @totally-not-ai
    Contributor

    Closing as outdated: this concerns Polymer template models, and Polymer template support is deprecated.

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions