Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用VirtualList时报IntersectionObserver is using slowest path, try to enable nativeMode for better performance. #17348

Open
tiamed opened this issue Feb 19, 2025 · 0 comments

Comments

@tiamed
Copy link

tiamed commented Feb 19, 2025

@tarojs/taro: 4.0.7
微信小程序基础库: 3.7.0

<VirtualList
  position='relative'
  key='id'
  enhanced
  className={styles.scroll}
  onScrollToLower={loadMore}
  lowerThreshold={100}
  width='100%'
  height='100%'
  itemData={data?.list || []}
  itemCount={data?.list?.length || 0}
  itemSize={(index, items) =>
    getPopularItemSize(index, items) * getWindowScaleRate()
  }
  item={Row}
  renderBottom={<BottomText loading={loading} noMore={noMore} />}
></VirtualList>

IntersectionObserver is using slowest path, try to enable nativeMode for better performance.

This was referenced Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant