Don't know why this is going in infinite loop. Please help urgent!

I’m not sure what you are trying to use NodeView.update for, but that’s a method called to update the node’s DOM representation. Dispatching transactions from there is never a reasonable thing to do.