MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/JavaScriptTips/comments/qje0fe/how_to_do_a_singleton_in_javascript/
r/JavaScriptTips • u/UltiRequiem • Oct 31 '21
1 comment sorted by
2
This looks like a bad idea to me - import should not really produce a side effect. I have seen lots of bugs in JavaScript where this has been th cause.
2
u/alfonzodibonzo Oct 31 '21
This looks like a bad idea to me - import should not really produce a side effect. I have seen lots of bugs in JavaScript where this has been th cause.