Memoize field validation results (#10714)
* Memoize field validation results * Make validation memoization opt-in
This commit is contained in:
parent
a629ce3a53
commit
f5d05f3284
4 changed files with 85 additions and 55 deletions
|
@ -68,6 +68,7 @@ const validServer = withValidation<undefined, { error?: MatrixError }>({
|
|||
: _t("Can't find this server or its room list"),
|
||||
},
|
||||
],
|
||||
memoize: true,
|
||||
});
|
||||
|
||||
function useSettingsValueWithSetter<T>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue