bertho-zero/react-redux-universal-hot-example

Hot reload's behaviour

GabrieleRomeo opened this issue · 0 comments

Hi all,
I don't understand how the hot-reload mechanism works.
When I use Chrome in normal mode any changes to the visual aspect (.scss files) or the business logic (I tried to add a silly <h1> just before the {config.app.title} in the Home.js file) I made aren't reflected (even if I clear the cache or I do a hard refresh)

However when I use Chrome in incognito mode all the changes are correctly shown but with some errors into the console

react.development.js:247 Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.

Check your code at client.js:146.
warningWithoutStack @ react.development.js:247
checkPropTypes.js:19 Warning: Failed child context type: The child context `app` is marked as required in `withContext(Provider)`, but its value is `undefined`.
    in withContext(Provider) (at client.js:145)
printWarning @ checkPropTypes.js:19
react-dom.development.js:62 Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
    at invariant (react-dom.development.js:55)
    at createFiberFromElement (react-dom.development.js:9966)
    at reconcileSingleElement (react-dom.development.js:12922)
    at reconcileChildFibers (react-dom.development.js:12979)
    at reconcileChildren (react-dom.development.js:13383)
    at finishClassComponent (react-dom.development.js:13557)
    at updateClassComponent (react-dom.development.js:13501)
    at beginWork (react-dom.development.js:14090)
    at performUnitOfWork (react-dom.development.js:16416)
    at workLoop (react-dom.development.js:16454)
react-dom.development.js:14550 The above error occurred in the <Provider> component:
    in Provider (created by withContext(Provider))
    in withContext(Provider) (at client.js:145)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
logCapturedError @ react-dom.development.js:14550
react-dom.development.js:55 Uncaught (in promise) Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
    at invariant (react-dom.development.js:55)
    at createFiberFromElement (react-dom.development.js:9966)
    at reconcileSingleElement (react-dom.development.js:12922)
    at reconcileChildFibers (react-dom.development.js:12979)
    at reconcileChildren (react-dom.development.js:13383)
    at finishClassComponent (react-dom.development.js:13557)
    at updateClassComponent (react-dom.development.js:13501)
    at beginWork (react-dom.development.js:14090)
    at performUnitOfWork (react-dom.development.js:16416)
    at workLoop (react-dom.development.js:16454)

Thanks