-
Notifications
You must be signed in to change notification settings - Fork 3k
Modify URL without state reload #3470
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
Comments
This would be useful as well if you are in the situation where you want a parameter to be dynamic for one child state, yet non dynamic for other sibling states |
Looks like a duplicate of #2679 |
It might well be, although they refer to very specific use cases and start to bring weird terms, such as "dynamic parameters" and "sticky states". The need is to modify the URL, it cannot be simpler. Anyways, focusing on the original message, @orangesoup's problem could definitely be solved with an extra parameter in the Feel free to close this issue in favour of #2679, but please, don't overcomplicate things! |
Is there a way to use one of the transition service hooks to stop a state transition but still perform the URL updating? |
That is an interesting idea, but still overcomplicated in my view. I'm not sure if it is even possible, though. |
Any news on this (or #2679)? By stopping to use the deprecated |
Sorry for being so insistent, but are there any updates on this...? Are you planning on implementing a feature like this? |
Pop. |
@inad9300 @ventralnet I might have created a solution that fits your needs over in #3047 |
This issue has been automatically marked as stale because it has not had This does not mean that the issue is invalid. Valid issues Thank you for your contributions. |
This is a feature request.
reloadOnSearch
is deprecated. Now we are supposed to use "dynamic parameters" -- a much more obscure name than "reload on search". The reasons for this change are beyond my understanding, but both approaches are too rigid.Once you say "do not reload x state if a parameter changes", you are completely restricted on what you can do. No doubt you will at some point need to add a new parameter for which you do want to reload the state if it changes.
Once you say "do not reload whatever state if x parameter changes", you are equally restricted. No doubt you will sooner or later want to both, in different circumstances, navigate to the state with new parameters, and simply synchronize some internal state with the URL.
So, in my opinion, the ideal approach would be to allow controlling the reload on a per-call basis, i.e. via a parameter on the
go()
function.If you find the time to implement such a feature, I would be very grateful.
The text was updated successfully, but these errors were encountered: