aragon / ui

🦚 UI kit for decentralized apps
https://ui.aragon.org/
MIT License
343 stars 127 forks source link

DataView: Explicit auto over spring internals #811

Closed andy-hook closed 3 years ago

andy-hook commented 3 years ago

This is an alternative approach to https://github.com/aragon/aragon-ui/pull/810 without relying on spring to handle auto. This is superior in some ways because values always remain accurate and up to date, transitions are also preserved when reordering.

Only drawback is that the height of the expansion it remeasured more often than is needed (while it's open) but without changing the api we have no reliable and unique information to use as dependencies other than the content nodes (which could arguably be more expensive and more complex to compare)

ezgif-4-c8421b2b27ad