Closed subzero911 closed 2 years ago
I checked it with provided example not working... onCreate() fires on app start because GoRoutes already present in the page stack, and constructor works immediately. But I need to call it on actual page push only.
@subzero911 am I reading the comments correctly? are these changes not working in the tests?
Yes, these changes are not working. I couldn't understand your code and did something wrong. But you got my idea.
can you create or reopen the feature request?
@csells I already opened the topic before, but you closed it. https://github.com/csells/go_router/issues/297#issuecomment-1008436177
Thanks. Reopened https://github.com/csells/go_router/issues/297.
Continuing this topic https://github.com/csells/go_router/issues/297
i have added experimental onCreate / onDispose callbacks to GoRoute my idea is that I can register / unregister dependencies in these callbacks with custom IoC (GetIt / Kiwi or other)
haven't tested it yet