mirror of https://github.com/status-im/metro.git
Tweak Hot Loading yellow box wording
Summary: Users don't know what an accept callback is. Lets be more explicit on what type of modules we currently support hot loading. Reviewed By: weicool Differential Revision: D2945438 fb-gh-sync-id: d0fc228ab23833371f8fbbd86ed18e81c8ba0ebf shipit-source-id: d0fc228ab23833371f8fbbd86ed18e81c8ba0ebf
This commit is contained in:
parent
ccbf9273fe
commit
a558c4b59d
|
@ -118,8 +118,8 @@ if (__DEV__) { // HMR
|
|||
mod.module.hot.acceptCallback();
|
||||
} else {
|
||||
console.warn(
|
||||
'[HMR] Module `' + id + '` can\'t be hot reloaded because it ' +
|
||||
'doesn\'t provide accept callback hook. Reload the app to get the updates.'
|
||||
'[HMR] Module `' + id + '` can\'t be hot reloaded because it\'s not a ' +
|
||||
'React component. To get the changes reload the JS bundle.'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue