Does it have any disadvantages to navigate without a context? #1998
Unanswered
escamoteur
asked this question in
Q&A
Replies: 1 comment
-
Hey @escamoteur I wrote the part of the docs back when auto-scope finding wasn't supported by auto_route, the only drawback I can think of today is that accessing a certain 'Router' in the routers graph might be a challenge. I might add that every sub-router widgets (Stack or Tabs) attaches a controller to the graph, the controller's life cycle is synced with the widget's, so if you obtain a sub-router and you use it after it's disposed by the corresponding widget you might get some errors. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I just found this chapter in the readme https://pub.dev/packages/auto_route#navigating-without-context
Which I (for obvious reasons ;-) very much like because it uses get_it and also because I'm always annoyed to need a context when pushing things.
Does this has any drawbacks compared to use the context?
Cheers
Thomas
Beta Was this translation helpful? Give feedback.
All reactions