Skip to content

Show view when its ready to be shown #367

@gapipro

Description

@gapipro

So lets assume we have 2 views. First is list of items and second is edit form for items. Every view has its own loading logic (Few rest calls). When all loading is done then view is shown. This works great on initial start but when page is loaded and you only switch from one view to another each time new view is shown before data is fully loaded, because changing current view triggers data loading and it switches html at the same time. This causes page content to blink a little because it is shown when data is not yet loaded.

How to solve this? Is it ok to have loading logic in views or should it be in parent controller that manages views?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions