You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem here is that after click on "switch pattern" I start to provide rules = {{ required: true }} property to controller without any explicit undefined for rules.pattern and Controller use "cached" value from previous rules property value
Version Number
7.51.3
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/thirsty-goldstine-n9rfhv?file=%2Fsrc%2FApp.tsx
Steps to reproduce
Problem here is that after click on "switch pattern" I start to provide
rules = {{ required: true }}
property to controller without any explicitundefined
for rules.pattern and Controller use "cached" value from previousrules
property valueWorkaround 1
Workaround 2
P.S. I didn't try to catch same behaviour with
register({rules})
maybe it's not a Controller specific behaviourExpected behaviour
I expect that change of "rules" property will update rules.pattern property as well without explicit "undefined"
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: