We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e4a0d3 commit 88682f1Copy full SHA for 88682f1
examples/counter/dispatcher.js
@@ -8,8 +8,10 @@ const dispatcher =
8
9
dispatcher.receive(stores, actions);
10
11
-module.hot.dispose(data => {
12
- data.dispatcher = dispatcher;
13
-});
+if (module.hot) {
+ module.hot.dispose(data => {
+ data.dispatcher = dispatcher;
14
+ });
15
+}
16
17
export default dispatcher;
examples/todo/dispatcher.js
0 commit comments