Skip to content

Commit

Permalink
perf: remove unecessary hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Melchyore committed Sep 2, 2022
1 parent 483d6e8 commit 6a94048
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/Mixins/AutoPreload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,6 @@ export const AutoPreload: AutoPreloadMixin = (superclass) => {
this.handleAutoPreload(query, false)
}
)

/**
* The paginate method executes two queries and the
* first one will restore the preloads. To handle this
* behavior, the before paginate hook will instruct
* this package to not restore the preloads array,
* leaving this job to after paginate hook.
*/
this.after('paginate', () => {
//this.$with = [...this.$originalWith]
})
}

public static without(relationships: any): any {
Expand Down

0 comments on commit 6a94048

Please sign in to comment.