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

onPullDownRefresh,usePullDownRefresh 下拉刷新无回调 #7072

Closed
QIUYON opened this issue Jul 15, 2020 · 8 comments
Closed

onPullDownRefresh,usePullDownRefresh 下拉刷新无回调 #7072

QIUYON opened this issue Jul 15, 2020 · 8 comments
Assignees
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-2 Version - 2.x

Comments

@QIUYON
Copy link

QIUYON commented Jul 15, 2020

相关平台

H5

浏览器版本: Chrome 76.0.3809.87(正式版本) (64 位)
使用框架: React

复现步骤

使用taro init xxxx 默认模板,在src/pages/index/index.config.ts中开启下拉刷新 enablePullDownRefresh: true,
onPullDownRefresh,usePullDownRefresh 无回调,无任何反应

期望结果

有正常的下拉刷新回调

实际结果

onPullDownRefresh,usePullDownRefresh 下拉刷新无回调

环境信息

👽 Taro v2.2.11


  Taro CLI 2.2.11 environment info:
    System:
      OS: macOS 10.14.6
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 14.4.0 - /usr/local/bin/node
      Yarn: 1.17.3 - /usr/local/bin/yarn
      npm: 6.14.5 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.0.2 => 3.0.2 
      @tarojs/components: 3.0.2 => 3.0.2 
      @tarojs/mini-runner: 3.0.2 => 3.0.2 
      @tarojs/plugin-sass: ^2.2.10 => 2.2.10 
      @tarojs/plugin-terser: ^2.2.10 => 2.2.10 
      @tarojs/taro: 3.0.2 => 3.0.2 
      @tarojs/webpack-runner: 3.0.2 => 3.0.2 
      eslint-config-taro: 3.0.2 => 3.0.2 
      nervjs: ^1.5.7 => 1.5.7 
      react: ^16.10.0 => 16.13.1 
      taro-ui: ^3.0.0-alpha.3 => 3.0.0-alpha.3 
    npmGlobalPackages:
      typescript: 3.7.2
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Jul 15, 2020
@Chen-jj Chen-jj added V-2 Version - 2.x and removed V-3 Version - 3.x labels Jul 30, 2020
@peica
Copy link

peica commented Aug 1, 2020

3.0.5也有问题。

@peica
Copy link

peica commented Aug 1, 2020

3.0.6 已解决 @Chen-jj

@notbucai
Copy link

3.0.7 无效

@GZWZC
Copy link

GZWZC commented Nov 17, 2020

3.0.16 onPullDownRefresh无效

@ZakaryCode
Copy link
Contributor

应该和 #8050 中修复的问题是同一类型的问题,欢迎 PR 修复

@znacloud
Copy link

znacloud commented Jan 19, 2021

3.0.21 onPullDownRefresh 没有刷新过程中的动画效果(顶部空白)

@ZakaryCode
Copy link
Contributor

使用taro init xxxx 默认模板,在src/pages/index/index.config.ts中开启下拉刷新 enablePullDownRefresh: true,

index.config.ts 的配置方法是 3.x 中才有的

onPullDownRefresh,usePullDownRefresh 无回调,无任何反应

👽 Taro v2.2.11


  Taro CLI 2.2.11 environment info:
    System:
      OS: macOS 10.14.6
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 14.4.0 - /usr/local/bin/node
      Yarn: 1.17.3 - /usr/local/bin/yarn
      npm: 6.14.5 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.0.2 => 3.0.2 
      @tarojs/components: 3.0.2 => 3.0.2 
      @tarojs/mini-runner: 3.0.2 => 3.0.2 
      @tarojs/plugin-sass: ^2.2.10 => 2.2.10 
      @tarojs/plugin-terser: ^2.2.10 => 2.2.10 
      @tarojs/taro: 3.0.2 => 3.0.2 
      @tarojs/webpack-runner: 3.0.2 => 3.0.2 
      eslint-config-taro: 3.0.2 => 3.0.2 
      nervjs: ^1.5.7 => 1.5.7 
      react: ^16.10.0 => 16.13.1 
      taro-ui: ^3.0.0-alpha.3 => 3.0.0-alpha.3 
    npmGlobalPackages:
      typescript: 3.7.2

请对齐使用的 Taro 和 CLi 版本

@ZakaryCode
Copy link
Contributor

3.0.21 onPullDownRefresh 没有刷新过程中的动画效果(顶部空白)

未能复现到该问题,如有需要可以在新的 issue 中提交可复现的的 demo,并说明具体平台

@ZakaryCode ZakaryCode moved this to Done in H5 Apr 10, 2023
@ZakaryCode ZakaryCode added this to H5 Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-2 Version - 2.x
Projects
Archived in project
Development

No branches or pull requests

8 participants