gaearon / gaearon/react-hot-loader

Hot boundary Webpack loader

Open
#1,339 0 comments 6 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.2k
Forks
775
PR merge metrics
No merged PRs in 30d

Description

> based on https://github.com/facebook/react/issues/16604#partial-timeline

create a webpack plugin which will inject `hot` code to the `included` files, for example `components/**/index.js`.

- [ ] - hooks should be reset only inside enclosed boundary (read `generation` from a context`)
- [ ] - (prevent false positives) only files with all exports matching react component patterns.
- [ ] - Throw error in case of wrong exports in an included location.
- [ ] - Enable dry run - check which exports would be rendered as react components.
- [ ] - (lazy interface) only for files with a single default export

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.