Skip to content

Commit

Permalink
fix: fix: mobx cycle detected in computation (get() strict mode)
Browse files Browse the repository at this point in the history
Fix: mobx cycle detected in computation (get() strict mode)
  • Loading branch information
foxhound87 committed Apr 14, 2023
1 parent da89513 commit 5a8181d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 6.2.2 (master)
- Fix: mobx cycle detected in computation (get() strict mode)

# 6.2.1 (master)
- Refactored set value with input function
- Deprecated input function on `initial` and `default` props.
Expand All @@ -7,7 +10,7 @@
- Feat: #433 (File input append mode)

# 6.1.1 (master)
- Fix: #624 (default() helpers)
- Fix: #624 (defaults() helpers)

# 6.1.0 (master)
- Introduced `fallbackValue` and `retrieveNullifiedEmptyStrings` form options.
Expand Down
2 changes: 1 addition & 1 deletion src/Base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ export default class Base implements BaseInterface {
allowedProps(AllowedFieldPropsTypes.all, _.isArray(prop) ? prop : [prop]);

if (_.isString(prop)) {
if (this.fields.size === 0) {
if (strict && this.fields.size === 0) {
const retrieveNullifiedEmptyStrings = this.state.options.get(OptionsEnum.retrieveNullifiedEmptyStrings, this);
return parseCheckOutput(this, prop, strict ? retrieveNullifiedEmptyStrings : false);
}
Expand Down

0 comments on commit 5a8181d

Please sign in to comment.