Replies: 5 comments 2 replies
-
@bluebill1049 I noticed you added the "status: need more detail" label. |
Beta Was this translation helpful? Give feedback.
-
dead csb |
Beta Was this translation helpful? Give feedback.
-
@bluebill1049 forgot to make it public 🤦♂️ please check it now |
Beta Was this translation helpful? Give feedback.
-
@bluebill1049, could you please take a quick look at this issue and share your opinion on the usage? I might be doing something wrong, or there could be a better solution that I'm not aware of. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Doesn't work as what you supplied example, because register onChange never gets updated, what I would suggest to use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Version Number
7.52.2
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/react-hook-form-hidden-input-ws-wmvchr
Steps to reproduce
Expected behaviour
I need to frequently update input fields with computed values that come from the websocket. Data is coming from the websocket and is computed based on some other field selection. I tried using

useEffect
andsetState
, but then I get this React error.I also tried using the
register
functionvalue
option, but it didn't helped. Maybe I misunderstood the docs.Also, I want to use the WEB platform and use input fields instead of imperatively setting state, so I can more easily migrate to React form actions in the future.
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions