mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
Refactor: Memoize hook callbacks, update dependencies, and fix lint errors (#268)
Co-authored-by: N. Taylor Mullen <ntaylormullen@google.com>
This commit is contained in:
@@ -101,7 +101,7 @@ export const useGeminiStream = (
|
||||
);
|
||||
}
|
||||
}
|
||||
}, [config.getApiKey(), config.getModel()]);
|
||||
}, [config]);
|
||||
|
||||
// Input Handling Effect (remains the same)
|
||||
useInput((input, key) => {
|
||||
@@ -532,10 +532,13 @@ export const useGeminiStream = (
|
||||
getNextMessageId,
|
||||
updateGeminiMessage,
|
||||
handleSlashCommand,
|
||||
handleShellCommand,
|
||||
// handleAtCommand is implicitly included via its direct call
|
||||
setDebugMessage, // Added dependency for handleAtCommand & passthrough
|
||||
setStreamingState, // Added dependency for handlePassthroughCommand
|
||||
updateAndAddGeminiMessageContent,
|
||||
setShowHelp,
|
||||
toolRegistry,
|
||||
],
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user