Skip to content

Blinking #25

@jeron-diovis

Description

@jeron-diovis

Let say I have to screens in my application. Each screen requires some own data to be loaded before it's displayed – the task async-reactor is made for.
Now, I'm doing transition from Screen1 to Screen2. What happens then?

  1. Screen1 is unmounted.
  2. Reactor is rendered – it renders loader, as initial state is empty.
  3. Reactor is mounted – user sees a loader.
  4. Promise is resolved, Reactor is updated, and user sees Screen2.

Thus, user will see how first all content disappeared, then appeared after few milliseconds – even if it is very fast, it is still noticeable for an eye. It blinks, every time I'm going between screens – instead of smooth replacement of one screen with another, as React does with normal sync flow.

I wrote a helper very similar to async-reactor for our internal needs, and this blinking make me crazy. How do you handle this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions