Skip to content
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

[PROPOSAL] middleware capabilities #5

Closed
rodrigobastosv opened this issue Dec 19, 2019 · 3 comments
Closed

[PROPOSAL] middleware capabilities #5

rodrigobastosv opened this issue Dec 19, 2019 · 3 comments

Comments

@rodrigobastosv
Copy link

I think it would be great if we could pass some kind of middleware to be executed on every page transition for example. The motivation is to be able to for examplo log to the console which route you are going to.

@jonataslaw
Copy link
Owner

I will leave this issue open because I am interested in implementing this.
I'm going to change a little bit about how things work in Get to allow this, and also implement route protection.

Currently, when accessing a route, it is immediately pushed, and I think maybe it would be better for the route to go through a validator first, and then go to the next route, and that's where your idea fits the new implementation.
I can't promise it will be this week, but I will do it.

@rodrigobastosv
Copy link
Author

Great to hear that. With the growing of Flutter web Route Guarda Will bem absolutaly important. I'll vê following this issue to track the progress. Thanks!

@jonataslaw
Copy link
Owner

Added on 1.9.0

jonataslaw pushed a commit that referenced this issue Nov 9, 2020
kamazoun added a commit to kamazoundevz/getx that referenced this issue Jan 12, 2021
kamazoun added a commit to kamazoundevz/getx that referenced this issue Jan 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants