fix(app): fix flicker and navigation when collapsing/expanding projects (#6658)
This commit is contained in:
parent
8e9a0c4ad0
commit
bbd1c071c4
4 changed files with 12 additions and 15 deletions
6
packages/app/src/utils/same.ts
Normal file
6
packages/app/src/utils/same.ts
Normal 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])
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue