dillon1000/react
Commit
Browse files Always clone DEFAULT_HOOKS
Reusing DEFAULT_HOOKS instance is a bit scary in case we mutate it by mistake and this gets reflected across all compiles. This isn't a concern now as we can't change the config during compilation. But this PR keeps us safe in case we change this behavior in the future. The tradeoff is a bit of perf which I think is the right tradeoff here.
Changed paths1 file
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/HIR/Environment.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…