limit cached session views on tab switch
This commit is contained in:
@@ -490,7 +490,6 @@ const InstanceShell2: Component<InstanceShellProps> = (props) => {
|
|||||||
|
|
||||||
append(parentId)
|
append(parentId)
|
||||||
append(activeId)
|
append(activeId)
|
||||||
current.forEach((id) => append(id))
|
|
||||||
|
|
||||||
const limit = parentId ? SESSION_CACHE_LIMIT + 1 : SESSION_CACHE_LIMIT
|
const limit = parentId ? SESSION_CACHE_LIMIT + 1 : SESSION_CACHE_LIMIT
|
||||||
const trimmed = next.length > limit ? next.slice(0, limit) : next
|
const trimmed = next.length > limit ? next.slice(0, limit) : next
|
||||||
|
|||||||
Reference in New Issue
Block a user