dillon1000/react
Commit
Browse files Test cases for optional call
Tests, focusing on two key behaviors: * Dependencies of the args are treated as conditional, since the call may not happen * Args cannot be memoized independently, even when that would be valid for a non-optional call.
Changed paths7 files
First-parent comparisoncompiler/forget/src/HIR/BuildHIR.ts ModifiedA compiler/forget/src/__tests__/fixtures/compiler/call-with-independently-memoizable-arg.expect.md AddedA compiler/forget/src/__tests__/fixtures/compiler/call-with-independently-memoizable-arg.js AddedA compiler/forget/src/__tests__/fixtures/compiler/optional-call-with-independently-memoizable-arg.expect.md AddedA compiler/forget/src/__tests__/fixtures/compiler/optional-call-with-independently-memoizable-arg.js AddedA compiler/forget/src/__tests__/fixtures/compiler/optional-call.expect.md AddedA compiler/forget/src/__tests__/fixtures/compiler/optional-call.js AddedPatch
Files changed
Rendering syntax-highlighted changes…