mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-13 23:11:10 +00:00
perf: hoist empty Set default to prevent card re-renders
This commit is contained in:
parent
b8e5376b99
commit
3f36d6c9b0
1 changed files with 2 additions and 1 deletions
|
|
@ -120,6 +120,7 @@ function fetchOgData(url: string): Promise<OgData | null> {
|
|||
|
||||
const PAGE_SIZE = 100
|
||||
const MAX_TOTAL = 1000
|
||||
const EMPTY_SET = new Set<string>()
|
||||
|
||||
const MEMORIES_LOADING_LABELS = [
|
||||
"Getting your supermemories…",
|
||||
|
|
@ -214,7 +215,7 @@ export function MemoriesGrid({
|
|||
isChatOpen,
|
||||
onOpenDocument,
|
||||
isSelectionMode = false,
|
||||
selectedDocumentIds = new Set(),
|
||||
selectedDocumentIds = EMPTY_SET,
|
||||
onEnterSelectionMode,
|
||||
onToggleSelection,
|
||||
onClearSelection,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue