Fix TabsRoute behaviour
@jmurzy is already working on this.
Since Jun 18, 2016.
Assessment
This issue has not been assessed yet.
Description
TabsRoute should implement two behaviours:
- it should save the state for each child route and restore it when switching tabs
- it should reset a child's state if that child is being navigated to twice
Given the following route config:
<Router>
<TabsRoute path="/" ...>
<StackRoute path="/foo" ...>
<Route path="a" ... />
<Route path="b" ... />
</StackRoute>
<Route path="/bar" .../>
</TabsRoute>
</Router>
Visiting routes should lead to the following results respectively:
- /foo --> show /foo
- /foo/a --> show /foo/a
- /foo/b --> show /foo/b
- /bar --> show /bar
- /foo --> show /foo/b (a tab route saves and restores its children's state)
- /foo --> should reset stack of the child stack route and show /foo
- Dominant language
- JavaScript
- Stars
- 636
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jmurzy/react-router-native
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 1/5 Under an hour Newbie friendliness 10/100
jmurzy/react-router-native#81 · 5 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
jmurzy/react-router-native#79 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
jmurzy/react-router-native#78 · 2 comments · 3 reactions ·
-
Difficulty 1/5 Under an hour Newbie friendliness 25/100
All issues in jmurzy/react-router-native
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
keyxmakerx/Chronicle#2284 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
soroswap/token-list#125 ·
Maintainers usually reply within 1 day
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
EveryInc/compound-engineering-plugin#2085 ·
Maintainers usually reply within 1 day