Skip to content

Commit

Permalink
Revert "deep merge properties (#1877)"
Browse files Browse the repository at this point in the history
This reverts commit 7179279.
  • Loading branch information
reinink committed Jun 13, 2024
1 parent 519272b commit b2218f4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/core/src/router.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { default as Axios, AxiosResponse } from 'axios'
import deepmerge from 'deepmerge'
import debounce from './debounce'
import {
fireBeforeEvent,
Expand Down Expand Up @@ -388,9 +387,7 @@ export class Router {

const pageResponse: Page = response.data
if (isPartial && pageResponse.component === this.page.component) {
pageResponse.props = deepmerge(this.page.props, pageResponse.props, {
arrayMerge: (_target: any[], source: any[]) => source,
})
pageResponse.props = { ...this.page.props, ...pageResponse.props }
}
preserveScroll = this.resolvePreserveOption(preserveScroll, pageResponse) as boolean
preserveState = this.resolvePreserveOption(preserveState, pageResponse)
Expand Down

0 comments on commit b2218f4

Please sign in to comment.