MCPcopy Create free account
hub / github.com/facebook/Rapid / disableRules

Method disableRules

modules/core/ValidationSystem.js:494–500  ·  view source on GitHub ↗

* disableRules * Disables given validation rules, * then reruns the validation so that the user sees something happen in the UI * @param {Array } ruleIDs - Complete set of rules that should be disabled

(ruleIDs = [])

Source from the content-addressed store, hash-verified

492 * @param {Array<string>} ruleIDs - Complete set of rules that should be disabled
493 */
494 disableRules(ruleIDs = []) {
495 this._disabledRuleIDs = new Set(ruleIDs);
496
497 const storage = this.context.systems.storage;
498 storage.setItem('validate-disabledRules', [...this._disabledRuleIDs].join(','));
499 this.validateAsync();
500 }
501
502
503 /**

Callers 1

renderDisclosureContentFunction · 0.80

Calls 2

validateAsyncMethod · 0.95
setItemMethod · 0.45

Tested by

no test coverage detected