-
Notifications
You must be signed in to change notification settings - Fork 801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DX improvements #867
Comments
Use React-Hot-Loader version 4, RC was shipped yesterday. I mean we literally dont know a method, a way to make HoC/decorator/component NOT to work with a new version. |
@theKashey the claim "it just works" was in the docs before. it didnt "just work". Trust me, i would like it to (cssinjs/react-jss#117). the problem is still in debugging it. How did you verify that it works with any possible HoC/component/etc? can it be put in words? can some another situation. What if RHL doesnt work with my obscure HoC (it will eventually happens)? Or if RHL does work, but not in a way i would expect it to? about the detailed documentation:
about
|
My two cents: I'm not actively involved with the project anymore but I think we might need to fundamentally rethink how it works with the assumption that we can change something in React if necessary. Both the way we proxy classes and the way we traverse the rendered tree seem potentially flaky to me. I'm sorry I can't spend more time on diving into details but I would love to see a proposal in React RFCs that suggests hooks necessary on React side to remove all the hacky code from RHL and make it work 100% consistently. |
@gaearon I agree, now that the project is stable, we have to make it cleaner, and to do it we have to make changes in React. |
Does the project currently add any custom hooks to components beyond the React API? I noticed something called |
Currently, we have one "problem", one "feature", and one "thing to improve".
Meanwhile - all this stuff is required to fake Anyway - I've promised at least trice to document how v4 works. It's time to fulfil the promises. |
I've started adding some pages into Wiki. The first one - How-React-Hot-Loader-works |
Just after writing down how it works, I've point a few moments which may no longer work as I expect, or should work differently. |
@theKashey thanks for this |
Description
As a react ecosystem developer, i want to ensure my HoCs work with RHL. Right now it is hard to achieve.
Actual behavior
Nothing helps react ecosystem developer to verify that RHL works with HoCs they create.
Expected behavior
I would like to see some few improvements:
The text was updated successfully, but these errors were encountered: