How to prevent router from navigating to self?

I’m not sure. Since the reusing the view model bit is talking about change to the view model centered around activation strategy and not a navigation strategy) I think either that link is accidentally to the wrong anchor, or I’m not quite understanding the suggesting.

I’m admittedly tired, so it’s entirely possible I’m just not totally processing how that would fit.
I’m going to revisit this when I’m more rested to see if it makes more sense to me.

Most of the time, I think we need a complete change in view model. It’s just the case where (and the route can totally predict this) the router’s fixing to leave THIS instance of the view model only to end up in the exact same spot (all of the same params), after some tear-down and re-build.

What I think I’m getting at is it’s not clear to me how something like this would (appropriately) navigate and create new view models in the majority case, but avoid doing so in this one.

While I’m in here – THANK YOU @bigopon for taking the time to consider and respond to this, and for the time you spend helping people out in here generally (You’ve been doing this a LONG time). I appreciate you.

3 Likes