question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is the reason for using nextTick?

See original GitHub issue

It 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:closed
  • Created 7 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
lillem4ncommented, Mar 23, 2019

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. 😃

1reaction
lillem4ncommented, Mar 12, 2019

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found