Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

[BUG] 页面在引入 React Context 的情况下,useShow 函数会在错误的情况下被触发 #256

Closed
hellohejinyu opened this issue Sep 27, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@hellohejinyu
Copy link
Contributor

bug 描述
如果一个页面引入了 React Context,那么这个页面除了在第一次显示在前台时能正常的触发 useShow,后续在它切入后台时也会触发,且再切换到前台时无法再触发useShow

复现步骤
下面有最小复现此问题的 demo,注意查看控制台输出

期望结果
useShow可以正常的触发

复现代码
https://github.com/elowes/remax-useShow-repro

版本信息:

  • remax 版本: 1.1.0
  • 手机型号 手机条件无关
  • 小程序端 微信小程序
  • 小程序版本 2.8.3
  • 开发环境 macOS

其他信息

@hellohejinyu hellohejinyu added the bug Something isn't working label Sep 27, 2019
@yesmeck
Copy link
Member

yesmeck commented Sep 27, 2019

Fixed in 1.1.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants