Skip to content

Commit 61fd2ab

Browse files
committed
fix lint
1 parent 868234b commit 61fd2ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/react-reconciler/src/__tests__/useMemoCache-test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,7 @@ describe('useMemoCache()', () => {
212212
const cache = useMemoCache(5);
213213

214214
// x is used to produce a `data` object passed to the child
215-
const [x, _setX] = useState(0);
216-
setX = _setX;
215+
const [x] = useState(0);
217216

218217
const c_0 = x !== cache[0];
219218
let data;

0 commit comments

Comments
 (0)