React Fast Refresh is coming to the web!
Hot reloading that *preserves* component state
Better recovery from runtime errors
Supports Hooks & function components
To learn more see:
https://github.com/facebook/create-react-app/pull/8582 …
https://github.com/pmmmwh/react-refresh-webpack-plugin …https://twitter.com/timneutkens/status/1251942933953228802 …
-
0:18 -
Replying to @addyosmani
Devon Govett Retweeted Devon Govett
Came to the web 5 months ago in Parcel.
https://twitter.com/devongovett/status/1195377210133106690 …Devon Govett added,
0:32Devon Govett @devongovettJust landed React Refresh support in Parcel 2!
Great DX for React apps out of the box.
https://github.com/parcel-bundler/parcel/pull/3654 …
Huge thanks to @mischnic for doing the integration, and@dan_abramov and the@reactjs team for making this possible.
pic.twitter.com/HUu1iA3dFx4 replies 2 retweets 14 likes -
Replying to @devongovett
Nice! Behaviorally, do you have a sense of how much different Parcel's support for FR is to the recent work done to get this functional with Webpack? ~Parity?
3 replies 2 retweets 3 likes -
Replying to @addyosmani @devongovett
I can't help but wonder how much better off users would be if the same effort had gone into simply making it faster to reload pages full stop.
5 replies 0 retweets 5 likes -
Replying to @slightlylate @addyosmani
The point here is to maintain the state of the app while reloading. Not the same as a full page reload.
1 reply 0 retweets 4 likes -
Replying to @devongovett @addyosmani
...which, at the limit, is what causes developers to less-often feel the costs of page refresh, causing them to avoid fixing it.
1 reply 0 retweets 3 likes -
Replying to @slightlylate @addyosmani
I don't think page reload performance from localhost is really representative so I'm not sure how that would help.
1 reply 0 retweets 8 likes -
Replying to @devongovett @addyosmani
It's not! But removing even that *super weak* signal is removing information from their ambient understanding of how the system will peform. It's reducing sympathy for the user *and* the machine.
2 replies 0 retweets 0 likes -
Replying to @slightlylate @addyosmani
Umm, ok. You don't have to use it if you don't want.
1 reply 0 retweets 14 likes
-
-
Alex, where have you been for last 3 years, during which “hot reloading” was considered harmful, and React-Hot-Loader especially? There are many pros and cons for hot replacements, including just using strobooks/small sandboxes, where it’s not needed.
1 reply 0 retweets 0 likes -
Replying to @theKashey @slightlylate and
But “full page developing”? Especially with full page reset/reload? That’s just not correct, and not doable in case of big applications. This about this as tests, and hot reloading would act like a “watch mode”. Still nothing like customer facing experience, it’s developing!
0 replies 0 retweets 0 likes
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.