Akryum / vue-virtual-scroller

⚡️ Blazing fast scrolling for any amount of data
https://vue-virtual-scroller-demo.netlify.app
9.48k stars 901 forks source link

Disable RENDER_FUNCTION to to work with vue compat #666

Closed baptistejamin closed 1 year ago

baptistejamin commented 3 years ago

Hello!

We are using your package at Crisp and recently we started to migrate our project to Vue 3 using @vue/compat.

During the migration process, we discovered that DynamicScrollerItem is rendered using the compatibility renderer.

Disabling RENDER_FUNCTION fixes the problem

Szymon-dziewonski commented 3 years ago

I can tell its working, added locally into DynamicScrollerItem

 compatConfig: {
    RENDER_FUNCTION: false
  },

and its working, @Akryum can we please have this one merged, I would appreciate that :)

Akryum commented 2 years ago

I think you can import DynamicScrollerItem and re-export a modified version

import { DynamicScrollerItem } from 'vue-virtual-scroll'

DynamicScrollerItem.compatConfig = {...}

export const CompatDynamicScrollerItem