dillon1000/react
Commit
Browse files Make DropManualMemoization error message more accurate
This was probably a leftover from a previous time, but since this error message throws when the dependency list is not an array literal, and not just when its a rest spread, this PR updates the message to match. ghstack-source-id: 28f2338212e56a67d3d477cea5abb6e9f3826488 Pull Request resolved: https://github.com/facebook/react-forget/pull/2902
Changed paths2 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/Inference/DropManualMemoization.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.useMemo-non-literal-depslist.expect.md ModifiedPatch
Files changed
Rendering syntax-highlighted changes…