mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
13 lines
242 B
JavaScript
13 lines
242 B
JavaScript
import { use } from "react";
|
|
|
|
async function fetchData() {
|
|
return new Promise((resolve) => {
|
|
resolve(source("fetchedData"));
|
|
});
|
|
}
|
|
|
|
function Component() {
|
|
const data = use(fetchData());
|
|
sink(data); // $ hasValueFlow=fetchedData
|
|
}
|