Kakapo.js icon indicating copy to clipboard operation
Kakapo.js copied to clipboard

Fix Router example using strategies in docs

Open mtscrb opened this issue 5 years ago • 0 comments

Current docs shows this as an example:

const fetchRouter = new Router({
  strategies: ['fetch']
});

Which is wrong, since that argument should be the second one, not the first one.

A proper example would be:

const fetchRouter = new Router(
  {} , // interceptor options
  {
    strategies: ['fetch']
  }
);

mtscrb avatar Oct 18 '19 03:10 mtscrb