Closed subhranshudas closed 6 years ago
Thanks for reporting the bug! Is there any chance you can make a small Gist or GitHub repo to reproduce this? I'm not very familiar with worker-loader and so I'm afraid I won't be able to reproduce what you describe.
@nolanlawson thanks for the reply, let me create a small repo to replicate it...
from the code above if messageRecieved.ACTION is blank, the if-clause should never be entered on the first place ! my bet is your setup has some alternative logging system that also prints out the first argument passed to log function..
Closing old issues, please reopen if we can find a repro! Thanks
Hi,
I am using
promise-worker
. I am triggering events usingsetInterval
.I have noticed that for first few set of events (1+) the worker handler is called twice.i am using
webpack
&worker-loader
set upwebpack
worker.js
worker-index.js
app.js
What i am observing is the console.logs in the web worker are repeated twice as -
The second time the
ACTION
is not printed, but theDATA
is. But when i set up counters in both APP and the WORKER, the number of events printed is equal!!!Not sure what to make of it.
Regards.