New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[go_router_builder] add onExit parameter #137394
Comments
@chunhtai would you have any pointers for opening a PR for this, maybe there is a similar feature that could serve as a starting point? cc @johnpryan |
This issue is marked P1 but has had no recent status updates. The P1 label indicates high-priority issues that are at the top of the work list. This is the highest priority level a bug can have if it isn't affecting a top-tier customer or breaking the build. Bugs marked P1 are generally actively being worked on unless the assignee is dealing with a P0 bug (or another P1 bug). Issues at this level should be resolved in a matter of months and should have monthly updates on GitHub. Please consider where this bug really falls in our current priorities, and label it or assign it accordingly. This allows people to have a clearer picture of what work is actually planned. Thanks! |
…it` (#6495) Part of flutter/flutter#137394 I need to add the `state` parameter to the `onExit` method so I can use the `factoryImpl(state)`: https://github.com/flutter/packages/blob/d4cd4f00254b2fdb50767c837ecd27bcbac488cd/packages/go_router/lib/src/route_data.dart#L100-L118
@benjaminledet You should be able to use |
@ValentinVignal this issue is for go_router_builder, based on the changelog it doesn't look like onExit is available in go_router_builder yet. |
@rorystephenson It is then used by |
Is there an existing issue for this?
Use case
The parameter
onExit
was recently added to goRouter. I would like to use it with the goRouter builder but it is not possible at the moment.Proposal
Add
onExit
as an optional parameter on the go_router_builder api.The text was updated successfully, but these errors were encountered: