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 · 2 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
@StepToTop
Copy link
Contributor

taro info看下,谢谢🙏

@tiamed
Copy link
Author

tiamed commented Mar 12, 2025

taro info看下,谢谢🙏

👽 Taro v3.6.35

Taro CLI 3.6.35 environment info:
System:
OS: Linux 6.13 EndeavourOS
Shell: 5.9 - /usr/bin/zsh
Binaries:
Node: 20.14.0 - /run/user/1000/fnm_multishells/1117828_1741763487381/bin/node
Yarn: 1.22.22 - /run/user/1000/fnm_multishells/1117828_1741763487381/bin/yarn
npm: 10.7.0 - /run/user/1000/fnm_multishells/1117828_1741763487381/bin/npm
npmPackages:
@tarojs/cli: 4.0.7 => 4.0.7
@tarojs/components: 4.0.7 => 4.0.7
@tarojs/helper: 4.0.7 => 4.0.7
@tarojs/plugin-framework-react: 4.0.7 => 4.0.7
@tarojs/plugin-platform-h5: 4.0.7 => 4.0.7
@tarojs/plugin-platform-weapp: 4.0.7 => 4.0.7
@tarojs/react: 4.0.7 => 4.0.7
@tarojs/runtime: 4.0.7 => 4.0.7
@tarojs/shared: 4.0.7 => 4.0.7
@tarojs/taro: 4.0.7 => 4.0.7
@tarojs/taro-loader: 4.0.7 => 4.0.7
@tarojs/webpack5-runner: 4.0.7 => 4.0.7
babel-preset-taro: 4.0.7 => 4.0.7
eslint-config-taro: 4.0.7 => 4.0.7
react: ^18.0.0 => 18.3.1
taro-ui: ^3.3.0 => 3.3.0

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

2 participants