emilkowalski / vaul

An unstyled drawer component for React.
https://vaul.emilkowal.ski
MIT License
5.26k stars 169 forks source link

Batch fixed position style updates #337

Closed rortan134 closed 1 month ago

rortan134 commented 1 month ago

Updating multiple inline styles at once can be done more efficiently with Object.assign. This portion of code was causing quite a few recalculation renders on some browsers

image

vercel[bot] commented 1 month ago

@rortan134 is attempting to deploy a commit to the emil Team on Vercel.

A member of the Team first needs to authorize it.