Skip to content

Dimensions Middleware #399

@agubler

Description

@agubler

Enhancement

A middleware for working retrieving the dimensions of a dom node by key. Building on the resize middleware, to prevent unnecessary calls to getBoundingClientRect which causes layout/reflow.

In addition to prevent superfluous calls getBoundingClientRect etc, using resize means that it would cause an invalidation when dimensions change which doesn't happen with the current Dimensions meta.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions