Twitter | Search | |
Dan Abramov
Here’s what I’ve been up to for the past month. Introducing Fast Refresh for React Native. We plan to expand it to the web later this year.
Reply Retweet Like More
#Kenneth Jun 28
Replying to @dan_abramov
Expanding it to the web would be most welcome. Would that require specific build tooling?
Reply Retweet Like
Dan Abramov Jun 28
Replying to @dan_abramov
Fast Refresh unifies "hot reloading" and "reload on save" into a single option. The implementation is rewritten from scratch so that: 1. It shouldn't ever break your code 2. It fully supports function components and Hooks 3. It recovers from both compile and runtime errors
Reply Retweet Like
Dan Abramov Jun 28
Replying to @kpk
I guess we’ll start with integrating with webpack. But the actual setup is relatively tool agnostic.
Reply Retweet Like
Sophie Alpert Jun 28
Replying to @dan_abramov
*checks watch* gotta get that H1 impact huh
Reply Retweet Like
Amador Jun 28
Replying to @dan_abramov
At which version will we have acess to this beautiful thing?
Reply Retweet Like
Dan Abramov Jun 28
Replying to @lucasamadorzcv
Not sure yet, I guess the one after the next one.
Reply Retweet Like
Dan Abramov Jun 28
Replying to @sophiebits
You're not wrong
Reply Retweet Like
Tim 🚪 Jun 28
Replying to @dan_abramov
Does this rely on any special React internals or is it implemented externally from React?
Reply Retweet Like
Sean Larkin (廖肖恩) 在深圳 🇨🇳 @TenCentLive Jun 28
Replying to @dan_abramov @kpk
Always welcome to help 🤩
Reply Retweet Like
Kaden Wilkinson Jun 28
Replying to @dan_abramov
Will it work with TypeScript out of the box?
Reply Retweet Like
Dan Abramov Jun 28
Replying to @Kdawgwilk
I don't personally know how to use TypeScript on React Native. If you can point me to instructions I can try to test it.
Reply Retweet Like
Satyajit Sahoo Jun 28
Replying to @dan_abramov @Kdawgwilk
I think the common way is to use Babel. The metro Babel preset already supports TypeScript by default.
Reply Retweet Like
Dan Abramov Jun 28
Replying to @satya164 @Kdawgwilk
Should be fine then
Reply Retweet Like
Dan Abramov Jun 28
Replying to @TheLarkInn @kpk
There are actually some parts where help might be needed. I don't think existing API is quite sufficient for how it works. I had to add some stuff to Metro.
Reply Retweet Like
Dan Abramov Jun 28
Replying to @timdorr
Yes and no. It relies on the same mechanism that React exposes for DevTools.
Reply Retweet Like
T-Rex Jun 28
Replying to @dan_abramov
When u gonna fix "debugging" problems? AsyncStorage,settimout etc...
Reply Retweet Like
Dan Abramov Jun 28
Replying to @chrome_TRex
Can you be more specific?
Reply Retweet Like
T-Rex Jun 28
Replying to @dan_abramov
My solution is to activate hot reloading. After couple of saves suddenly it works
Reply Retweet Like
Dan Abramov Jun 28
Replying to @chrome_TRex
The issue was closed because there was no reproducing case. If you prepare one and post it someone will look into it.
Reply Retweet Like