Skip to content

Commit

Permalink
fix: onRouteChange runtime key (umijs#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycjcl868 committed Feb 5, 2020
1 parent d49f970 commit 85a5b6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/plugin/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ api.chainWebpack((config, { webpack }) => {
- patchRoutes
- rootContainer
- render
- onRouteChange

### addUmiExports

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function(api: IApi) {
const validKeys = await api.applyPlugins({
key: 'addRuntimePluginKey',
type: api.ApplyPluginsType.add,
initialValue: ['patchRoutes', 'rootContainer', 'render'],
initialValue: ['patchRoutes', 'rootContainer', 'render', 'onRouteChange'],
});
const plugins = await api.applyPlugins({
key: 'addRuntimePlugin',
Expand Down

0 comments on commit 85a5b6b

Please sign in to comment.