Singleton ES6 Module being called multiple times?

前端 未结 0 1855
忘掉有多难
忘掉有多难 2020-12-20 13:34

I am not sure why the module here which has a console.log is being called multiple times. I thought this was a singleton. So if I\'m importing this module into other modul

相关标签:
回答
  • 消灭零回复
提交回复
热议问题