From f9441c57553b37af4aa8ed33073c639ded6eb1ef Mon Sep 17 00:00:00 2001 From: Toilal Date: Mon, 3 Apr 2017 11:03:17 +0200 Subject: [PATCH] Fix hot reload code generation --- lib/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 865b5ff..09015f7 100644 --- a/lib/index.js +++ b/lib/index.js @@ -92,9 +92,9 @@ if (module.hot) {(function(options) { if (api.compatible) { module.hot.accept() if (!module.hot.data) { - api.createRecord(${id}, options) + api.createRecord("${id}", options) } else { - api.reload(${id}, options) + api.reload("${id}", options) } }})(__component__) }`