An open API service indexing awesome lists of open source software.

https://github.com/narumincho/nrouter


https://github.com/narumincho/nrouter

Last synced: over 1 year ago
JSON representation

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
を使って取得したパスをどのようにブラウザに伝搬させているのかが不明