DEV Community

loading...

Discussion on: Bulletproof your Javascript code with a top-level await

Collapse
sebbdk profile image
Sebastian Vargr

I'm mixed about this feature, mostly because I think it will encourage doing logic in modules on import (that can fail ) without the importing code explicitly asking for it.

Nice feature, but how many new bug scenarios does it introduce vs what it solves?

Collapse
courseprobe profile image
Course Probe Author

I would be interested in what other people think in terms of specific scenarios, like examples. So developers can decide if it's worth using, knowing it might introduce certain bug on their particular code architecture.