How can I use a Mutex with a react hook?

后端 未结 0 1888
臣服心动
臣服心动 2021-01-07 11:47

I want to be sure that a block of code doesn\'t run concurrently. The async-Mutex library doesn\'t seem to be working for me though. Here\'s a minimal replication:

         


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