-
Notifications
You must be signed in to change notification settings - Fork 10
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
Live-reloading #9
Comments
Live-reloading is super-sweet in development and hot-reload is like magic, but @gaearon have very deep article about React Hot Loader and I am fully agreed with him. May be integrate this as babel plugin instead? We found babel is super sweet for transpiling JSX. |
Thanks for the mentions. Indeed as I wrote in the article you linked to above, I plan to use Babel for any JS transformations in RHL vNext (though technically it might not even be a “loader” anymore). |
Ok cool, so until that work is done, is there anything better I could be doing than mangling the source like I do here: https://github.com/geelen/typeslab/blob/master/src/jsx.js#L13-L21 Because Once Babel is doing the JSX transformation, do you think this plugin would cease to exist, @floatdrop? Or continue to exist but use Babel instead of |
@geelen it's so great to see you pushing these features. If you're looking to generalise a hot-reloading mechanism, perhaps it would be useful to share the mechanic you've implemented to get feedback first? Then we could potentially make it a shared convention that's easier to get others on board with. |
Ok, can you and I set up a chat (either voice or text) sometime to talk through the design? I have only a very low understanding of the internals of the loader, and I think with 30 mins chatting we could figure out if what I've got is the best way or if there's something better or simpler. I'm on holidays in Europe, but I'd love to do this soon as it's sorta forming the basis of my Front-Trends talk in a week in a half 😁 |
Make it a hangout :-) I'll be happy to join you. |
Sounds like @geelen is a little busy right now - I'd still love to have this discussion when the timing works out. |
Here's the new hot reloading core (with tests!) and a Babel plugin to annotate classes for it: https://github.com/gaearon/react-hotify Can this be of use to you? |
Yes! Looks great! Gonna have a crack at using that now :) On Wed, 29 Apr 2015 at 14:37 Dan Abramov notifications@github.com wrote:
|
Wondering whether it'd be possible to add live-reloading to this plugin. I've managed to get this working, but it's very restrictive, and needs some review & consideration before it'd be ready for a PR.
Here's what I've done so far:
hotReload
functionThe restrictions are pretty huge though:
class DropDown
)I want to work with @guybedford to make jspm-server a real part of jspm, and I think React hot loading would be a great thing to start with. I also want to chat with @gaearon about making better use of the hot-loader to remove some of these limitations of my version, but what do you think?
The text was updated successfully, but these errors were encountered: