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
{{ message }}
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.
I don't see a use case for render being async. Perhaps teardown/destroy? I also don't like the cruft that promises bring. If we provide callbacks, people can wrap fruitmachine API to add promises if they like that sugar.
If people don't like promises, they still have to carry their weight, and added library complexity. Promises bring just opinionated sugar, no added functionality (IMHO).
You should totally drink the Kool-Aid :P. Seriously though IMHO promises are a very powerful and flexible approach.
That said implementing them would break a lot of APIs and could work along side your suggested approach for callbacks in the future so I suggest we shelve the promises suggestion for now and implement as you originally suggested :-).
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I can foresee a point when we will require a callback from setup to tell us when all the modules in the view tree have finished setting up.
Inside module definition:
Then when we setup our view in our app:
The text was updated successfully, but these errors were encountered: