Skip to content

Request for useLayoutEffect for the web renderer #2433

@xpe

Description

@xpe

Background

I'm building a prototype Dioxus web app using absolute positioning. There are many divs that need to know their dimensions to prevent overlaps. (You could imagine that I'm using a force-directed layout if it helps visualize what I'm doing, but I'm not actually using that particular layout algorithm.) For this application, it would be ideal to wait until layout finishes but before painting starts. React has useLayoutEffect. If Dioxus had this, it would seem like the ideal thing to use.

Feature Request

Please add useLayoutEffect for the web renderer for Dioxus.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthooksChanges to built-in hook package

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions