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
Note that it's not returning anything nor does it set any params on any object like this.params. I didn't see any specs that actually check for this, but I could be missing it.
When I try that in my code my default params arent updated. If I have this code:
For now I can use afterCreate and set it as required: false (since I'll be forcing a value if null). I can update the docs if the above is indeed incorrect. I couldn't figure out the right syntax tho.
The text was updated successfully, but these errors were encountered:
I'm pretty sure this code in the docs doesn't work (its under https://github.com/geddy/model#lifecycle-events):
Note that it's not returning anything nor does it set any params on any object like
this.params
. I didn't see any specs that actually check for this, but I could be missing it.When I try that in my code my default params arent updated. If I have this code:
I still get an error:
For now I can use
afterCreate
and set it asrequired: false
(since I'll be forcing a value ifnull
). I can update the docs if the above is indeed incorrect. I couldn't figure out the right syntax tho.The text was updated successfully, but these errors were encountered: