We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93c891a commit 768ccc6Copy full SHA for 768ccc6
1 file changed
javascript/ql/test/library-tests/TripleDot/react-use.js
@@ -0,0 +1,12 @@
1
+import { use } from "react";
2
+
3
+async function fetchData() {
4
+ return new Promise((resolve) => {
5
+ resolve(source("fetchedData"));
6
+ });
7
+}
8
9
+function Component() {
10
+ const data = use(fetchData());
11
+ sink(data); // $ MISSING: hasValueFlow=fetchedData
12
0 commit comments