virtual
virtual copied to clipboard
feat(adapter): Add Vue Virtual Adapter
Hi! I made a Vue adapter for virtual-core. Here is a stackblitz demo.
I am wrapping the Virtualizer instance with a shallowRef and manually calling triggerRef on it to keep reactivity.
I am also calling both getScrollElement and estimateSize inside the watchEffect since most of the time, an Element is inside a ref and we need to update the options when it changes.
Plean let me know if you have any suggestions!