You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the new React Context API, the first hot reload results in seemingly invalid prop errors when using react-hot-loader.
Expected behavior
No additional prop type errors by using RHL.
Actual behavior
An unexpected prop type error shown (only) on the first hot reload (notifications is provided by the context):
Warning: Failed prop type: The prop `notifications` is marked as required in `NotificationsMenu`, but its value is `undefined`.
in NotificationsMenu (at Notifications.jsx:43)
in HotExportedApp (at src/index.jsx:6)
Environment
react-hot-loader: v4.3.12
node -v: v11.0.0
npm -v: N/A (using yarn)
yarn -v: 1.12.0
OS: Windows 10
Browser: this morning's Firefox Nightly (20181031223503)
Description
When using the new React Context API, the first hot reload results in seemingly invalid prop errors when using react-hot-loader.
Expected behavior
No additional prop type errors by using RHL.
Actual behavior
An unexpected prop type error shown (only) on the first hot reload (
notifications
is provided by the context):Environment
node -v
: v11.0.0npm -v
: N/A (using yarn)yarn -v
: 1.12.0Reproducible Demo
yarn
yarn start
src/App.jsx
(eg adjust the text within the<div>
)This testcase is derived from the implementation in mozilla/treeherder (mozilla/treeherder#4216 (comment)).
cc @camd.
The text was updated successfully, but these errors were encountered: