dillon1000/react

Commit

[forgive] Add code action to remove dependency array (#33000)

Adds a new codeaction event in the compiler and handler in forgive. This
allows you to remove a dependency array when you're editing a range that
is within an autodep eligible function.

Co-authored-by: Jordan Brown <[email protected]>
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/33000).
* #33002
* #33001
* __->__ #33000

Co-authored-by: Jordan Brown <[email protected]>
Browse files
Changed paths5 files
First-parent comparison
M compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts ModifiedM compiler/packages/babel-plugin-react-compiler/src/Inference/InferEffectDependencies.ts ModifiedM compiler/packages/react-forgive/server/src/index.ts ModifiedM compiler/packages/react-forgive/server/src/requests/autodepsdecorations.ts ModifiedM compiler/packages/react-forgive/server/src/utils/range.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…