Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Router example using strategies in docs #167

Open
mtscrb opened this issue Oct 18, 2019 · 0 comments
Open

Fix Router example using strategies in docs #167

mtscrb opened this issue Oct 18, 2019 · 0 comments

Comments

@mtscrb
Copy link

mtscrb commented Oct 18, 2019

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']
  }
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant