DEV Community

Discussion on: Why You Should Be Using TransferState (& Scully) to Cache Your API Calls in Angular

Collapse
 
sumitdhameja profile image
Sumeet Dhameja • Edited

Hi Hussain,
It was long time ago, but I think I had a token interceptor where i was intercepting request and adding Auth token in the header and that was causing the issue for me. When building I used "isScullyRunning" to check and skip it by calling "next"

if (isScullyRunning()) {
      return next.handle(request);
    }
Enter fullscreen mode Exit fullscreen mode

Hope it helps!