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
{{ message }}
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.
I did some refactoring of the TODO application from the egghead.io redux video series to move the components into their own component files using the suggested ES6 => syntax. However, after trying to move this project over to use React Transform, I'm getting the following warning (or a similar warning) on all component changes:
[HMR] The following modules couldn't be hot updated: (Full reload needed)
process-update.js?e13e:64
[HMR] - ./src/App.js
The most minimal working example I can give is the following (after cloning this repo):
Move the Counter code into a new component module:
// src/App.jsimportReact,{Component}from'react';import{NICE,SUPER_NICE}from'./colors';importCounterfrom'./Counter';// This only works when `Counter` is defined *inside* this file.exportconstApp=()=>(<div><Counterincrement={1}color={NICE}/><Counterincrement={5}color={SUPER_NICE}/></div>);// This will work when `Counter` is defined inside *or* outside this file.//export class App extends Component {// render() {// return (// <div>// <Counter increment={10} color={NICE} />// <Counter increment={5} color={SUPER_NICE} />// </div>// );// }//}
If you attempt to change the increment you'll get the warning mentioned above about the change requiring a full reload.
Is this expected behavior? My major question is whether the React Transform implementation requires all the components to be extended from React.Component?
Happy New Year and thanks for all the work on redux / hot reloading!
The text was updated successfully, but these errors were encountered:
I'm working off of 63851aa
I did some refactoring of the
TODO
application from the egghead.io redux video series to move the components into their own component files using the suggested ES6=>
syntax. However, after trying to move this project over to use React Transform, I'm getting the following warning (or a similar warning) on all component changes:The most minimal working example I can give is the following (after cloning this repo):
Move the
Counter
code into a new component module:Update
App.js
to the following:If you attempt to change the
increment
you'll get the warning mentioned above about the change requiring a full reload.Is this expected behavior? My major question is whether the React Transform implementation requires all the components to be extended from
React.Component
?Happy New Year and thanks for all the work on redux / hot reloading!
The text was updated successfully, but these errors were encountered: