4 ms·
I'd be interested in seeing your code for this. I'm 99% certain it's something in your code rather than in Vue itself. I've done recursive nesting myself plenty
by pmx 4y ago
I'd be interested in seeing your code for this. I'm 99% certain it's something in your code rather than in Vue itself. I've done recursive nesting myself plenty of times and as long as you limit the depth so it doesn't go infinite you're fine.
- ramraj07 4y agoAbsolutely sure I’m doing something wrong but why would vue allow any case that hangs the entire tab? I’ve never seen that in any website ever!
- DJBunnies 4y agoAre you expecting vue to prevent you from doing something wrong?
- ramraj07 4y agoImagine if you write a java program and you execute it to get BSOD on windows, is that reasonable?
- badthingfactory 4y agoI've written C# code that deadlocked a webserver, C++ code that crashed a computer lab, JavaScript code that made the browser unresponsive, a SQL migration that accidentally deleted too much data. I don't really know what point you're trying to make, but bad code typically behaves badly.
- Etheryte 4y agoYou can write a program that locks up your computer in most any language, it's called a fork bomb. Of course, there are guards against the most basic versions these days, but the point still stands that there's nothing stopping you from writing an endless loop that takes up more and more resources. You can open the browser dev tools on this very page, write in `while(1);`, hit enter and watch the tab freeze up.
- croes 4y agoIn that case you should blame Windows not Java.
- spiderice 4y agoCorrect. And in this case, Chrome seems to be working as intended. Crashing the tab when bad code is written sounds like the correct behavior.