Triggering afterStateUpdated() with $set()?

Hi, I'm trying to to use the afterStateUpdated() method on a TextInput Field, that has been updated/filled by the $set() method from another field. Updating the value using $set() does not seem to trigger the afterStateUpdated() method (unless I'm doing something wrong). Is this not possible? Or how can I achieve this?
5 Replies
blink
blink3mo ago
they say in docs - programaticly setting values wont trigger afterStateUpdated()
czehnter
czehnterOP3mo ago
Ah it actually does. Thanks, I somehow missed that. Is there any other way to do this apart from using afterStateUpdated()?
blink
blink3mo ago
Depends on what you need to achieve within afterStateUpdated() method
Matthew
Matthew3mo ago
Set it in the original update field.
Want results from more Discord servers?
Add your server