aksonov / aksonov/react-native-router-flux

Redux delete the history of previously visited pages

未关闭
#3,514 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
8.9k
派生
2.1k
PR 合并指标
30 天内没有已合并 PR

描述

So rnrf does save the history of what app screens it has visited, so you can do Actions.pop() and return to the previous page visited. But once you save something in redux, and then you attemp to go to the previous page with pop(), instead of going to the previous page, it takes you to the initial screen of the applicacion. Which probably means the rnrf history was erased.

### Version
Tell us which versions you are using:
- react-native-router-flux v4.1.0-beta-4 (but it also happend in 4.0.0 which is latest stable version)
- react v16.8.3
- react-native v0.59
- expo 33

### Expected behaviour

After saving data to redux, Actions.pop() should still take me to the previous visited screen

### Actual behaviour

After saving data to redux, Actions.pop() take me to the initial screen

### Steps to reproduce
1.Save any data to redux
2.After the redux code has been executed, execute Actions.pop()
3.It will take you to the initial screen (which in many cases, that one is the login screen)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。