Skip to content

1.0.0-rc1 Documentation for DynamicRouting incorrect #1927

@jhchill666

Description

@jhchill666

The documentation for 1.0.0-rc1 - DynamicRouting, incorrectly states the following signature is used for declaring async routes:

getComponents(callback) {
    require.ensure([], function (require) {
      callback(null, require('./components/Course'))
    })
  }

Looking at getComponents.js, the supplied arguments should be location then callback

....
} else if (route.getComponents) {
    route.getComponents(location, callback);
}
....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions