DEV Community

Discussion on: Change Detection: When using setTimeout() is not your best option

Collapse
 
scooperdev profile image
Stephen Cooper

My guess, without actually trying, would be that it should also work.

However, they are run at different times in the component setup so we do need to take some care when moving code between the two in our applications.