Files
react/compiler/forget
Joe Savona 3744930728 Fix last(?) order of evaluation bug
Not to get ahead of myself (sorry i had to), but i think this is the last order 
of evaluation bug. At least it's the last one we know of[1]. Per the previous 
PR, the issue is that constant propagation can copy the last value of a sequence 
expression to where the sequence is used, leaving the original sequence 
expression out of order after other instructions are moved around. We fix that 
here by explicitly skipping constant propagation for the last value of a 
sequence block. 

[1] There are some places where we _would_ have evaluation order bugs if we 
allowed arbitrary expressions, but we explicitly limit the expressions we allow 
in those places. For the curious: switch test case values and destructuring 
default values.
2023-06-04 21:41:27 -04:00
..
2023-05-02 09:33:19 -07:00
2023-06-02 13:06:36 -04:00
2023-06-02 13:06:36 -04:00
2023-05-11 13:39:58 -06:00
2023-06-04 21:41:27 -04:00
…
2023-06-02 13:06:36 -04:00
…
2023-06-01 13:23:09 -07:00
…
2023-06-01 13:23:09 -07:00

React Forget

React Forget is an experimental Babel plugin to automatically memoize React Hooks and Components.

Development

# tsc --watch
$ yarn dev

# in another terminal window
$ yarn test --watch

Notes

An overview of the implementation can be found in the Architecture Overview.

This transform

Scaffolding

Reference