We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f523bf3 commit e4f4a9fCopy full SHA for e4f4a9f
1 file changed
packages/router-core/src/utils.ts
@@ -219,13 +219,9 @@ export function replaceEqualDeep<T>(prev: any, _next: T): T {
219
const array = isPlainArray(prev) && isPlainArray(next)
220
221
if (array || (isSimplePlainObject(prev) && isSimplePlainObject(next))) {
222
- const prevItems = array
223
- ? prev
224
- : Reflect.ownKeys(prev)
+ const prevItems = array ? prev : Reflect.ownKeys(prev)
225
const prevSize = prevItems.length
226
- const nextItems = array
227
- ? next
228
- : Reflect.ownKeys(next)
+ const nextItems = array ? next : Reflect.ownKeys(next)
229
const nextSize = nextItems.length
230
const copy: any = array ? [] : {}
231
0 commit comments