https://github.com/narumincho/nrouter
https://github.com/narumincho/nrouter
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/narumincho/nrouter
- Owner: narumincho
- Created: 2024-06-08T05:52:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T06:54:16.000Z (about 2 years ago)
- Last Synced: 2025-01-23T10:30:45.893Z (over 1 year ago)
- Language: Dart
- Size: 13 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nrouter
Flutter 内部で Web の History API の State に {serialCount: 0, state: null}
の構造のデータを入れていて, うまく取り出すことができない? JsAny
から取り出せない?
| called | nrouter stack | browser stack |
| -------------------------------------- | ------------- | ----------------- |
| RouterDelegate.setNewRoutePath(A:null) | (A:0) | A:1,(A:0) |
| NRouter.push(B) | A:0,(B:1) | A:1,A:0,(B:1) |
| RouterDelegate.setNewRoutePath(A:0) | (A:0),B:1 | A:1,(A:0),B:1 |
| RouterDelegate.setNewRoutePath(C:null) | A:0,(C:1) | A:1,A:0,(C:1) |
| RouterDelegate.setNewRoutePath(A:null) | A:0,C:1,(A:2) | A:1,A:0,C:1,(A:2) |
| RouterDelegate.setNewRoutePath(C:1) | A:0,(C:1),A:2 | A:1,A:0,(C:1),A:2 |
| RouterDelegate.setNewRoutePath(A:1) | (A:1) | (A:1) |
Flutter が RouterDelegate.currentConfiguration
を使って取得したパスをどのようにブラウザに伝搬させているのかが不明