Commit bef78ff
committed
Fix:- Improve HOC support and state preservation in React Refresh (facebook#30660)
## Summary
This fixes facebook#30659 , the issue was how the state was preserved and needed
special cases for the forward and memo, have also added tests related to
the same.
## How did you test this change?
`yarn test packages/react-refresh/src/__tests__/ReactFresh-test.js`

DiffTrain build for [de1eaa2](facebook@de1eaa2)1 parent 65040f5 commit bef78ff
File tree
36 files changed
+204
-138
lines changed- compiled/facebook-www
36 files changed
+204
-138
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1957 | 1957 | | |
1958 | 1958 | | |
1959 | 1959 | | |
1960 | | - | |
| 1960 | + | |
1961 | 1961 | | |
1962 | 1962 | | |
1963 | 1963 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1957 | 1957 | | |
1958 | 1958 | | |
1959 | 1959 | | |
1960 | | - | |
| 1960 | + | |
1961 | 1961 | | |
1962 | 1962 | | |
1963 | 1963 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
| 633 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
| 633 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
637 | | - | |
| 637 | + | |
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
637 | | - | |
| 637 | + | |
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16950 | 16950 | | |
16951 | 16951 | | |
16952 | 16952 | | |
16953 | | - | |
| 16953 | + | |
16954 | 16954 | | |
16955 | 16955 | | |
16956 | | - | |
| 16956 | + | |
16957 | 16957 | | |
16958 | 16958 | | |
16959 | 16959 | | |
| |||
16987 | 16987 | | |
16988 | 16988 | | |
16989 | 16989 | | |
16990 | | - | |
| 16990 | + | |
16991 | 16991 | | |
16992 | 16992 | | |
16993 | 16993 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16722 | 16722 | | |
16723 | 16723 | | |
16724 | 16724 | | |
16725 | | - | |
| 16725 | + | |
16726 | 16726 | | |
16727 | 16727 | | |
16728 | | - | |
| 16728 | + | |
16729 | 16729 | | |
16730 | 16730 | | |
16731 | 16731 | | |
| |||
16759 | 16759 | | |
16760 | 16760 | | |
16761 | 16761 | | |
16762 | | - | |
| 16762 | + | |
16763 | 16763 | | |
16764 | 16764 | | |
16765 | 16765 | | |
| |||
0 commit comments