-
Notifications
You must be signed in to change notification settings - Fork 156
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
New AppBuilderAPI #290
New AppBuilderAPI #290
Conversation
seed::App::builder(update, view).build_and_run(); This is what counter looks like now. Also, I think I need to combine |
Love that - Adding the |
Looks good on the first glance. Let me know when you have questions or when it's ready for the second review. |
@MartinKavik I think it's ready for another review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you update also changelog, please?
@David-OConnor I will be several days without PC - so once the last comments are resolved and you don't want to add more, feel free to merge it. |
@AlterionX : Do you plan to modify this further? Ready to merge. Overall a solid improvement, both with the |
I have a small question about the order in which messages are processed. It's somewhere in the review, but I'll post it again here:
|
What do you think it'll break? Your proposal sounds good. |
Just a bit afraid to change behavior, really. I just realized that I forgot to push the changes that actually do what I said, but I'd already implemented it. Whoops! Sorry about that. I'm a bit afraid if people depend on messages being sent from |
Let's not worry about that - if we break things, that's fine. Hopefully will catch anything between the merge and the next release, and if not, no big deal. |
@MartinKavik Made the change! Hopefully it's good to go. |
Please rebase your branch onto updated |
- Implement API (slight use of generics). - Convert examples to `BeforeMount` and `AfterMount` from `Init`. - Isolate one of the bug fixes in a method that's always called: `build`.
- Add deprecation notices to parts of old API. - Convert examples to new API. Add two additional conversions for AfterMount and BeforeMount. - Ensure window listeners are set after model is set. - Fix user_media example.
…ntainer::append_fron` to `merge`.
1b939fa
to
e590679
Compare
@AlterionX Good job! Let's find out how it works in the real world :) |
Are we ready to merge this? |
@David-OConnor Sorry I was a little bit too fast, but code seems to be ok, no conflicts and tests pass. |
Here's an implementation for the new API (#250) that I've been toying around with.
I may have gone a little crazy on the types.... I could have also combined 4 of the fields in the new
AppBuilder
struct into 2, but it might have been (even more) confusing, so I left it as is.It should still support everything for the older version, and I haven't marked the old methods as deprecated yet.
I also haven't gotten around to converting the examples yet, but I've been up pretty much all night at this point, so I'll fix it later.