mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
JS: Add model for react 'use'
This commit is contained in:
@@ -8,5 +8,5 @@ async function fetchData() {
|
||||
|
||||
function Component() {
|
||||
const data = use(fetchData());
|
||||
sink(data); // $ MISSING: hasValueFlow=fetchedData
|
||||
sink(data); // $ hasValueFlow=fetchedData
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user