dillon1000/react

Commit

[FeatureFlag] Toggle enableTreatHooksAsFunctions default to true

--- 

Toggle default to true, since this should be a no-op refactor. 

Tests: 

- test fixtures 

- ran on Store + - and saw no difference in compiled output 

- [diff](P744101621) with 
`enableTreatHooksAsFunctions=false` 

- [diff](P744105565) with 
`enableTreatHooksAsFunctions=true`
Browse files
Changed paths5 files
First-parent comparison
M compiler/forget/packages/snap/src/compiler-worker.ts ModifiedM compiler/forget/src/HIR/Environment.ts ModifiedM compiler/forget/src/__tests__/fixtures/compiler/unknown-hooks-do-not-assert.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/compiler/unknown-hooks-do-not-assert.js ModifiedM compiler/forget/src/__tests__/test-utils/generateTestsFromFixtures.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…