Browse Source

docs(ja): tweak code example (#1528)

tomouchi 6 years ago
parent
commit
13dc501587
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/ja/guide/hot-reload.md

+ 1 - 1
docs/ja/guide/hot-reload.md

@@ -28,8 +28,8 @@ if (module.hot) {
   module.hot.accept(['./mutations', './modules/a'], () => {
     // 更新されたモジュールをインポートする
     // babel 6 のモジュール出力のため、ここでは .default を追加しなければならない
-    const newActions = require('./actions').default
     const newMutations = require('./mutations').default
+    const newModuleA = require('./modules/a').default
     // 新しいモジュールとミューテーションにスワップ
     store.hotUpdate({
       mutations: newMutations,