-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Hot Module Replacement Documentation #1251
Conversation
@webpack/documentation-team my feeling, and based off some of the issues/comments I've seen around this topic, is that the current hmr concepts page is useful but the hmr-react guide is too broad in scope and overlaps significantly with react-hot-loader's own documentation. I think the more we can document core behaviors and link to external third-party integrations/tools, instead of trying to document them as well, the better off we'll be. For example, in this case, if react-hot-loader's api or setup process changes (which is very possible since it's in beta) that's more documentation that we have to change here. Add this to the fact that we're still trying to finish documenting our backlog of core issues and I think we're just making things harder on ourselves. At most, I think we should include react-hot-loader's readme dynamically under |
Also can anyone tell me, or fill in the documentation for the |
@bebraw @simon04 can one of you take a look at this when you have a chance and let me know what's missing? Especially in regards to the actual API bits like |
Ok I found this page in the old docs which covers what is in |
2fdbd63
to
c22548e
Compare
@bebraw instead of copying that documentation for redux hmr I linked to the section in your article. This goes with the same theme of instead of trying to document every framework's hmr setup, linking to that documentation externally. Please review when you have a chance, this should be good to go now aside from the hmr plugin options (which, if you know what they do, please share). |
@skipjack Yeah, it makes sense to point to third parties with Redux/React if there are docs. I expect Redux documentation might have something on HMR. |
@bebraw have you encountered this yarn error before? |
@skipjack Nope. Looks like a serious yarn issue. Check out their issue tracker. Others might have the same problem. |
Ok will do -- are you familiar with those plugin options by chance? See the last task above:
And then aside from that are you good with this being merged? |
Apart from those and the yarn issue this is good to go. |
There are now three core pages to document hot-module-replacement (one in `/concepts`, `/api`, and `/guides`) as well as a page to document the plugin. This should create a better flow for readers as they can go from `concept` => `api` => `guide` to get a well rounded understanding of this feature.
…duleReplacementPlugin
1f3de56
to
20aec3e
Compare
Seems yarn worked itself out, though I did find that related issue that we should track just in case it happens again. Added the plugin option docs and fixed a few broken links... once the build passes I'll merge . |
The build is failing only for edit links that don't exist for the new pages. Running |
The goal of this PR is to improve the HMR docs in variety of ways:
/guides
?)HotModuleReplacementPlugin
hmr-react
guidemodule.hot.accept
) and node APIs/plugins/hot-module-replacement-plugin
Resolves #86
Resolves #88 (see comment below)