Skip to content

allow flushsync to wait fro async ui #14173

@zhihengGet

Description

@zhihengGet

Describe the problem

i want to scroll to bottom after async component is rendered, is there a way to do this ? i used flushSync after adding the async component the array but apparently flushSync is called before async component is rendered which caused scrollTop to scroll to near the end but not end. i can use mutationObserver but wondering if there's better way to 'wait'.

Describe the proposed solution

flushAllSync

Importance

nice to have

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting submitterneeds a reproduction, or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions