dillon1000/react

Commit

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.
Browse files
Changed paths7 files
First-parent comparison
M compiler/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 Added
Patch

Files changed

Rendering syntax-highlighted changes…