Skip to content

Commit 6dcc4e2

Browse files
echobtfactorydroid
andauthored
fix(editor): use void for reactive dependency tracking in FindReplaceWidget (#341)
Replace unused variable pattern with void expression to suppress TS6133 error while maintaining SolidJS reactive dependency tracking. Co-authored-by: Droid Agent <droid@factory.ai>
1 parent 90abef4 commit 6dcc4e2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cortex-gui/src/components/editor/FindReplaceWidget.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,8 +879,7 @@ export function FindReplaceWidget(props: FindReplaceWidgetProps) {
879879
// Effects
880880
createEffect(() => {
881881
// Re-search when options change (access state to create reactive dependency)
882-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
883-
const _state = findState();
882+
void findState();
884883
performSearch();
885884
});
886885

0 commit comments

Comments
 (0)