angular-ui / ui-router

The de-facto solution to flexible routing with nested views in AngularJS
http://ui-router.github.io/
MIT License
13.56k stars 3.01k forks source link

Looping issue after updating state params #3783

Closed Mopendra closed 4 years ago

Mopendra commented 4 years ago

Hi, I am updating state params in my one of the controller like below : var stateParams = { productId : null, . . . . }; stateParams["productId"] = vm.product.id; . . . . productService.updateStateParams(stateParams);

the above productService.updateStateParams call the method define in my root controller which assign the params with new params and try to navigate the same state but here the problem happening is that some kind of infinite loop is creating, calling this update method again and again, in my routing definition i tried to use reloadOnSearch : false but still it is not working, any one can please help me on this?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

This does not mean that the issue is invalid. Valid issues may be reopened.

Thank you for your contributions.