Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

Anyone got it working with react-hot-loader yet? #55

Closed
johot opened this issue Feb 3, 2019 · 2 comments
Closed

Anyone got it working with react-hot-loader yet? #55

johot opened this issue Feb 3, 2019 · 2 comments
Labels
invalid This doesn't seem right question Further information is requested

Comments

@johot
Copy link

johot commented Feb 3, 2019

First off really great work on this one @FredyC so much progress!

Was just wondering if anyone have tried using this with hot reloading? I'm testing it now and it seems that as soon as I wrap a functional component in the observer used in mobx-react-lite hot reloading stops working. I am using this sample currently as a base: https://github.com/gaearon/react-hot-loader/tree/master/examples/typescript-no-babel (but upgrades all deps to latest version).

The regular mobx-react seems to work though...

@johot
Copy link
Author

johot commented Feb 3, 2019

Hmm maybe related to this? gaearon/react-hot-loader#1088

@danielkcz
Copy link
Collaborator

danielkcz commented Feb 3, 2019

Thanks for the info. Looks like nothing can be done about this in here, so I am closing. You may try to useObserver instead if that helps anything. I don't use RHL, so I cannot really help with that.

@danielkcz danielkcz added invalid This doesn't seem right question Further information is requested labels Feb 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants