Skip to content
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

WIP Decouple observable mixins #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kriskowal
Copy link
Owner

As I begin rolling out packages in the @collections org, committing to these API’s has me reflecting on my certainty that they’re lasting and final. One thing I would like to change while we still have a chance is coupling to the observer implementations.

Rather than mixin observables, I would like to apply a delegate pattern so users can bring their own dispatch implementation.

I’ve started with deque to illustrate. In this change I remove the ObservableRange and ObservableProperty mixins. ObservableProperty is completely unnecessary, since you can just that API directly on any object. ObservableRange I would like to replace with rangeChangeDispatcher and rangeWillChangeDispatcher delegate objects.

@coveralls
Copy link

coveralls commented Dec 7, 2017

Coverage Status

Coverage decreased (-0.08%) to 92.23% when pulling 1acc84f on decouple-observable into ab19d8c on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants