fix(app): fix flicker and navigation when collapsing/expanding projects (#6658)

This commit is contained in:
Albin Groen 2026-01-05 18:24:49 +01:00 committed by GitHub
commit bbd1c071c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 15 deletions

View file

@ -0,0 +1,6 @@
export function same<T>(a: readonly T[] | undefined, b: readonly T[] | undefined) {
if (a === b) return true
if (!a || !b) return false
if (a.length !== b.length) return false
return a.every((x, i) => x === b[i])
}