Skip to content

Commit

Permalink
fix(core): fix reset should clear field caches (#2401)
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang authored Nov 5, 2021
1 parent 3305cf8 commit 6b1162a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions packages/core/src/shared/internals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,7 @@ export const resetSelf = batch.bound(
target.feedbacks = []
target.inputValue = undefined
target.inputValues = []
target.caches = {}
if (options?.forceClear) {
if (isArrayField(target)) {
target.value = []
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ export interface IFieldRequests {
export interface IFieldCaches {
value?: any
initialValue?: any
feedbacks?: IFieldFeedback[]
inputting?: boolean
}

Expand Down

0 comments on commit 6b1162a

Please sign in to comment.