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
"fish are weird" should get removed when I click reset obj button.
Current behavior
"fish are weird" string is forgotten on the page. And more is added as the set fish button is clicked after resetting the object.
Extra info
My real use case here is: I have a validationErrors object. I set Laravel's error data (which is in Object<Array<String>> format) from 422 responses. When user resubmits the form, I simply reset them with validationErrors = {} before sending the request but the errors stay on page. But interesting enough that I don't get that repeating behavior in the demo pen.
Is this somehow my error? Maybe wrong key? Should I loop over the errors in another way?
The text was updated successfully, but these errors were encountered:
Title feels weird, I didn't know how to explain it better and as short as possible.
Demo: https://codepen.io/hkanaktas/pen/JjYzqyq
Expected behavior
"fish are weird"
should get removed when I clickreset obj
button.Current behavior
"fish are weird"
string is forgotten on the page. And more is added as theset fish
button is clicked after resetting the object.Extra info
My real use case here is: I have a
validationErrors
object. I set Laravel's error data (which is inObject<Array<String>>
format) from 422 responses. When user resubmits the form, I simply reset them withvalidationErrors = {}
before sending the request but the errors stay on page. But interesting enough that I don't get that repeating behavior in the demo pen.Is this somehow my error? Maybe wrong key? Should I loop over the errors in another way?
The text was updated successfully, but these errors were encountered: