-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consider adding an initialize to the model constructor #23
Comments
we could utilize the top-level constructor events instead of adding a bunch of adhoc things like before/after/initialize |
ah ok so something like :
with this somewhere:
|
yeah, not sure what the event name should be but something like that |
|
If you went down the event road, how would you handle changes to the model that may be async? Something like:
|
@RGBboy you can't magically block a constructor anyway, so that isn't possible |
My use case for this would be when you want nested models. (Using the event for performing smth similar to the JSON.parse |
ie :
The text was updated successfully, but these errors were encountered: