jmurzy / jmurzy/react-router-native

Fix TabsRoute behaviour

Open
#17 6 comments 0 reactions 1 assignee Claimed by @jmurzy View on GitHub
enhancement
Dominant language
JavaScript
Stars
639
Forks
38
PR merge metrics
No merged PRs in 30d

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:

``` js







```

Visiting routes should lead to the following results respectively:
1. /foo --> show /foo
2. /foo/a --> show /foo/a
3. /foo/b --> show /foo/b
4. /bar --> show /bar
5. /foo --> **show /foo/b (a tab route saves and restores its children's state)**
6. /foo --> **should reset stack of the child stack route and show /foo**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.