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

3.3.18更新后路由出现了好几个问题 #10994

Closed
ShaoGongBra opened this issue Dec 28, 2021 · 10 comments
Closed

3.3.18更新后路由出现了好几个问题 #10994

ShaoGongBra opened this issue Dec 28, 2021 · 10 comments
Labels
F-react Framework - React question Further information is requested T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@ShaoGongBra
Copy link
Contributor

1、跳转新页面是,上一个页面在动画开始时就设置了display:none,应该在动画结束时设置,不然上一个页面就会白屏一下
2、当我跳转新页面,这时路由里面存在多个页面的时候,用浏览器的刷新按钮刷新页面,在返回当前页面不会卸载,都叠在一起
3、刷新页面再进行前进后退操作有报错,无动画

相关平台

H5

浏览器版本: edge
使用框架: React

环境信息

Taro CLI 3.3.18 environment info:
    System:
      OS: Windows 10
    Binaries:      Node: 12.14.1 - C:\Users\xujian\AppData\Local\Temp\yarn--1640687582600-0.39622277676732276\node.CMD      Yarn: 1.22.17 - C:\Users\xujian\AppData\Local\Temp\yarn--1640687582600-0.39622277676732276\yarn.CMD
      npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Dec 28, 2021
@ShaoGongBra
Copy link
Contributor Author

3.3.18.mp4

@jianhao2010303
Copy link

+1,刷新后之前页面不卸载。

@jianhao2010303
Copy link

麻烦开发大大赶紧修复下,等待上线了发现这么大问题。

@ZakaryCode
Copy link
Contributor

  1. 该逻辑不存在,且无法复现到该情况;
  2. 多页面路由刷新回退交叠: 该状态无法复现,请确定项目内所有依赖版本,如依旧存在,请提交对应demo
  3. 刷新页面回退无动画是正常状态,因为破坏了路由栈;刷新页面通过浏览器前进报错需要具体分析,没有对应demo难以复现

@ZakaryCode ZakaryCode added the question Further information is requested label Dec 29, 2021
@jianhao2010303
Copy link

jianhao2010303 commented Dec 29, 2021

image
1、从page2刷新,然后调用返回方法。
2、进入page1后,page2页面没有卸载。

@ZakaryCode
Copy link
Contributor

image 1、从page2刷新,然后调用返回方法。 2、进入page1后,page2页面没有卸载。

你只是这样没办法判断啊,我这边没法复现,给个demo看看咯

@jianhao2010303
Copy link

https://gitee.com/jianhao2010303/cn-com-xuct-study/tree/master/node/react/react-lesson-21
新写了一个例子,一样的问题。麻烦看看

@jianhao2010303
Copy link

image

@kchijim
Copy link

kchijim commented Dec 30, 2021

我也有个类似这样的问题在h5平台。#8622 (comment)

@jianhao2010303
Copy link

升级3.3.19

@taro-bot2 taro-bot2 bot removed the to be closed label Jan 5, 2022
@taro-bot2 taro-bot2 bot closed this as completed Jan 5, 2022
@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 question Further information is requested T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

4 participants