\ No newline at end of file
diff --git a/compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/merge-consecutive-scopes-deps-subset-of-decls.js b/compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/merge-consecutive-scopes-deps-subset-of-decls.js
new file mode 100644
index 0000000000..71cea01abc
--- /dev/null
+++ b/compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/merge-consecutive-scopes-deps-subset-of-decls.js
@@ -0,0 +1,21 @@
+import { useState } from "react";
+
+function Component() {
+ const [count, setCount] = useState(0);
+ return (
+
+ setCount(count - 1)}>Decrement
+ {/**
+ * The scope for the depends on just the scope for the callback,
+ * but the previous scope (after merging) will declare both the above
+ * and the callback.
+ */}
+ setCount(count + 1)}>Increment
+