mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-07 22:42:13 +08:00
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:
committed by
facebook-github-bot-1
parent
80728226fc
commit
5ec33d1a69
@@ -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.'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user