Request interception after woker start #1153
-
Hey, The first request will be intercepted, but every subsequent request will ignore the interceptor.
If we change the order and do our interceptor initialization first, everything works fine, which supports that theory. Can anyone confirm, that my assumptions are correct? And can I work around that somehow? I have tried to stop the worker before our interceptor initialization and restart it afterwards, but that did not work. I have created a stackblitz repro of the problem: You can run it with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
We have found the culprint for the problem. This is fixed if we set |
Beta Was this translation helpful? Give feedback.
We have found the culprint for the problem. This is fixed if we set
waitUntilReady
tofalse
. Because that actually mocks fetch.I don’t see a way around that while keeping
waitUntilReady
, but if you have any ideas it would be greatly appreciated.