V
V
Vadim2016-01-11 00:30:07
JavaScript
Vadim, 2016-01-11 00:30:07

How to avoid browser crash on $state.go()?

Actually the question is that when you try to change the state, the browser crashes (out of memory) or inspected target disconnected. Angular (es6) ui-router project, built with webpack. I googled, they say that memory leaks sometimes happen with the router, but that's not my case. How to be in this situation?
UPD: And if you just type the status url in the browser line, everything works.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2016-01-11
Protko @Fesor

out-of-memory already tells us about the memory.

M
Mikhail Osher, 2016-01-11
@miraage

If you subscribed to $stateChangeStart, $stateChangeSuccess - there might be a leak in your handlers.
I used ui-router in all projects - I have never encountered such an error.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question