mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 20:31:37 -05:00
Performance optimizations with memoization and useCallbacks
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { VSCodeButton } from "@vscode/webview-ui-toolkit/react"
|
||||
import { useExtensionState } from "../context/ExtensionStateContext"
|
||||
import { vscode } from "../utils/vscode"
|
||||
import { memo } from "react"
|
||||
|
||||
type HistoryPreviewProps = {
|
||||
showHistoryView: () => void
|
||||
@@ -148,4 +149,4 @@ const HistoryPreview = ({ showHistoryView }: HistoryPreviewProps) => {
|
||||
)
|
||||
}
|
||||
|
||||
export default HistoryPreview
|
||||
export default memo(HistoryPreview)
|
||||
|
||||
Reference in New Issue
Block a user