-
Notifications
You must be signed in to change notification settings - Fork 47.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wip] PropagateScopeDeps understands optionals
ghstack-source-id: 50d3523dbdb483cbd994a19a23a6ee262517bf04 Pull Request resolved: #30819
- Loading branch information
1 parent
7666342
commit e0a4e1e
Showing
5 changed files
with
160 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...iler/src/__tests__/fixtures/compiler/error.todo-optional-member-expression-as-memo-dep.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
// @validatePreserveExistingMemoizationGuarantees | ||
function Component(props) { | ||
const data = useMemo(() => { | ||
return props.items?.edges?.nodes ?? []; | ||
return props?.items.edges?.nodes.map(); | ||
}, [props.items?.edges?.nodes]); | ||
// const data = props?.item.edges?.nodes.map(); | ||
return <Foo data={data} />; | ||
} |