-
Notifications
You must be signed in to change notification settings - Fork 77
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
Move to React Context naming #5
Comments
Hey @passsy, Totally let me know if I'm wrong here, but I don't think they're quite the same.
Whatcha think? |
We can agree that
The distinction between BuildContext and // never seen something like this
var scopedModel = new ScopedModel(...)
var scopedModelDescendant = new ScopedModelDescendant(...) What about this?
|
Yep, I think "I still think ScopedModel is a better equivalent to the Context API than InheritedWidget alone." -- From an API standpoint, I agree. From a functionality standpoint, I disagree. But don't think it's worth getting into a long debate. We each view it in a slightly different way :) I've got a lot going on right now to support Dart 2 for RxDart and a few other libs, would you mind preparing a PR? Also, would be dope to ensure it works for Dart 2 if ya have a chance! |
will do :) |
@passsy Yessss, thanks so much for all the help with this lib! <3 |
I'm undecided. Renaming Only renaming Requires more thinking... |
Yah, I was thinking about that as well. Overall, I'm comfy with it if you are, but might not be worth it? 🤷♀️ 🤷♂️ |
After reading this and some discussion with my team we also like a more natural language approach to naming like:
Thoughts on that style of naming? |
I'm fine with |
I'm not the biggest fan of those names (since they're verbs instead of nouns), but I'm happy to defer to others who use this library more often and what feels natural to you. Please feel free to submit a PR and I can help review :) |
Keeping with the theme of mirroring the redux naming patterns like alternatives unistore and react-waterfall, it could be |
Any more thoughts on this? Seemed like we got a lot of suggestions, but not sure if we landed on something. Happy to make this change, just need to know what names you'd like to use :) |
I think the consensus seems to be Provide & BuildWith. |
Thanks @chimon2000! @apwilson @passsy -- What are your thoughts? Should I go forward with the |
Overall, we're discussing deprecating this package in favor of the |
React just published the Context API with the same features as scoped_model. I was thinking about changing the names of scoped_model to conform the React names (Which are pretty good).
ScopedModel<AModel>
->ContextProvider<AModel>
ScopedModelDescendant<AModel>
->ContextConsumer<AModel>
//cc @apwilson
The text was updated successfully, but these errors were encountered: