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

不能正确配置 ahooks #8788

Open
spaceoi opened this issue Mar 1, 2021 · 2 comments
Open

不能正确配置 ahooks #8788

spaceoi opened this issue Mar 1, 2021 · 2 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@spaceoi
Copy link

spaceoi commented Mar 1, 2021

相关平台

微信小程序

复现仓库

https://github.com/NervJS/模板
小程序基础库: 2.15.0
使用框架: React

复现步骤

使用taro init 创建 React 项目
添加 ahooks 安装及引用;
使用 useRequest 调用任意方法。

期望结果

正确输出

实际结果

虽然提出过某种解决办法,但实际未能解决 #6889 问题

环境信息

👽 Taro v3.1.1


  Taro CLI 3.1.1 environment info:
    System:
      OS: macOS 11.2.2
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 14.14.0 - ~/.nvm/versions/node/v14.14.0/bin/node
      Yarn: 1.22.4 - ~/.yarn/bin/yarn
      npm: 6.14.8 - ~/.nvm/versions/node/v14.14.0/bin/npm
    npmPackages:
      @tarojs/components: 3.1.1 => 3.1.1 
      @tarojs/mini-runner: 3.1.1 => 3.1.1 
      @tarojs/react: 3.1.1 => 3.1.1 
      @tarojs/runtime: 3.1.1 => 3.1.1 
      @tarojs/taro: 3.1.1 => 3.1.1 
      @tarojs/webpack-runner: 3.1.1 => 3.1.1 
      babel-preset-taro: 3.1.1 => 3.1.1 
      eslint-config-taro: 3.1.1 => 3.1.1 
      react: ^17.0.0 => 17.0.1 
      taro-ui: ^3.0.0-alpha.10 => 3.0.0-alpha.10 

@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Mar 1, 2021
@zhengtan2003
Copy link

我的项目中能正常使用ahooks

@spaceoi
Copy link
Author

spaceoi commented Mar 11, 2021

我的项目中能正常使用ahooks

我的项目中涉及到生命周期的 ahooks 函数不可用,非生命周期的没问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants