Skip to content

Fix Router example using strategies in docs #167

Description

@mtscrb

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']
  }
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions