I have a huge viewModel (3300 lines) so its probably pointless to paste all the code here and will paste depending on help I get in narrowing the area that could be causing this issue.
The viewModel was written by some other developer and serves as a reusable business function that is accessed by many modules of the application. I am doing a "change" in the model to conform to new functionalities. But I am facing this issue.
There are 3 grids in the viewModel. Each is displayed based on which of the 7 modules is calling this viewModel. Each of the grid is almost the same in every logic (no idea why made into three different - and have no time to find out why and merge them all). And this issue is occurring in only 1 of them. When a record is opened in the popup edit mode and cancel button is pressed, the browser goes in to not responding state for couple of seconds and then the error "too much recursion" is seen in the debugger.
I need to know what can be the root cause to this, what part of the code do I need to show here to find this issue.