What is the reason for using nextTick?
See original GitHub issueIt would be nice to at least document what is the reason node-mysql2
is using process.nextTick
to process the queries.
I am sure there is a good reason for it, probably something to do with sending packets in batches, though it comes at a high cost of DX. The stack traces are completely useless. It would be nice to mention this in the documentation and maybe even have an option to disable it when working in NODE_ENV=development
.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
What the Tick is Vue.nextTick? - Vue.js Developers
In a nutshell So: nextTick is a comfortable way to execute a function after the data has been set and the DOM has...
Read more >Understanding $nextTick in Vue.js - LogRocket Blog
nextTick accepts a callback function that gets delayed until the next DOM update cycle. It is just the Vue way of saying, “Hey,...
Read more >What is nextTick and what does it do in Vue.js? - Stack Overflow
nextTick allows you to execute code after you have changed some data and Vue.js has updated the virtual DOM based on your data...
Read more >How to Use nextTick() in Vue - Dmitri Pavlutin
$nextTick() is called without arguments, then the functions return a promise that gets resolved when component data changes reach DOM. That ...
Read more >Understanding Vue.js nextTick - Telerik
As you can see, nextTick() is executed before setTimeout() . This is why using nextTick() will be more performant as it will be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’d love too, but do not have the free time. Trying to sqeeze this in on a client project. If I manage that, I’ll revisit this. 😃
We’re having issues getting a reasonable call stack on errors because of this, why not just open this and remove all nextTicks from the code?