react-navigation / react-navigation/react-navigation.github.io
Linking inconsistency between closed app and open app deep link
未關閉
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 324
- 分支
- 2k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
When I do the following deeplink myApp://detail/123 (123 being an ID) with the app being closed and the following config
screens: {
detail: {
path: 'detail/:id',
},
},
I'll get the correct state
{"key": "detail-SbcExuYkpp6-Y4u9rYWjO", "name": "detail", "params": {"id": "123"}}
but if the app is already open (foreground or background), and I send another deeplink, then this is the state I get
{"key": "detail-vqAsOQ3ZBfydQjUCcpX9e", "name": "detail", "params": {"initial": false, "params": {"id": "123"}, "screen": "detail", "state": undefined}}
So for some reason, you get a nested params
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先,使用所示的 detail/:id 設定,在應用程式關閉時重現 myApp://detail/123 deeplink,接著在應用程式位於前景或背景時重現。比較產生的導覽狀態,並找出為什麼應用程式已開啟的情況會巢狀 params;當兩種啟動狀態都產生相同的參數結構時,即代表完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, react-native
- 領域
- mobile
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100