angular icon indicating copy to clipboard operation
angular copied to clipboard

Update uisref on param changing, not only state

Open oBusk opened this issue 2 years ago • 1 comments

If you have a link where some of the params are inherited, they will become outdated if the params change without the state changing.

oBusk avatar Jan 11 '23 14:01 oBusk

@wawyed When I looked at the code to fix the typo got me thinking if it's unecessary to update the sref twice in the scenario where you switch state and params? Maybe it'd work better if we were to listen to onSuccess or something rather than subscribing to state$ and params$ separately? 🤔

oBusk avatar Jan 14 '23 18:01 oBusk