mirror of
https://github.com/zebrajr/react.git
synced 2025-12-07 12:20:38 +01:00
Hacky retry pipeline for when transforming `fire(...)` calls encounters validation, todo, or memoization invariant bailouts. Would love feedback on how we implement this to be extensible to other compiler non-memoization features (e.g. inlineJSX) Some observations: - Compiler "front-end" passes (e.g. lower, type, effect, and mutability inferences) should be shared for all compiler features -- memo and otherwise - Many passes (anything dealing with reactive scope ranges, scope blocks / dependencies, and optimizations such as ReactiveIR #31974) can be left out of the retry pipeline. This PR hackily skips memoization features by removing reactive scope creation, but we probably should restructure the pipeline to skip these entirely on a retry - We should maintain a canonical set of "validation flags" Note the newly added fixtures are prefixed with `bailout-...` when the retry fire pipeline is used. These fixture outputs contain correctly inserted `useFire` calls and no memoization. |
||
|---|---|---|
| .. | ||
| Gating.ts | ||
| Imports.ts | ||
| index.ts | ||
| Options.ts | ||
| Pipeline.ts | ||
| Program.ts | ||
| Reanimated.ts | ||
| Suppression.ts | ||