This repository was archived by the owner on Jul 31, 2026. It is now read-only.
Commit 0e7dcbb
fix: pass boolean directly to setCollapsed instead of functional updater
Context API types setCollapsed as (collapsed: boolean) => void, not
Dispatch<SetStateAction<boolean>>, so the functional updater form fails
type-check. Use !collapsed directly and add it to the useCallback deps.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent d6b1038 commit 0e7dcbb
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments