Commit 50c261b
committed
fix: Fix TypeScript error and lint warning in useLiveSuspenseQuery
Changed from checking result.status === 'disabled' to !result.isEnabled
to avoid TypeScript error about non-overlapping types.
Added eslint-disable comment for the isEnabled check since TypeScript's
type inference makes it appear always true, but at runtime a disabled
query could be passed via the 'any' typed parameter.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent d6bcaeb commit 50c261b
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| |||
0 commit comments