Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

simplify subscription system, adds examples #30

Merged
merged 8 commits into from Aug 31, 2019

Conversation

jhonnymichel
Copy link
Owner

@jhonnymichel jhonnymichel commented Aug 30, 2019

current subscription system is great, but it does not fit with the theme of the library, IMO. After some personal usage and getting opinions from other devs and even a professional team that is using the lib, we came into the agreement that the library should keep providing foundational functionality that enables many use cases and implementations, so keeping it simple is the goal.

This refactors allows the current system (action based subscriptions) to be implemented externally if the developer wants it, since it keeps calling callbacks with the action object.

So the library core keeps small and simple, while it can easily be incremented using wrappers, as long as it keeps providing the same information to the subscribers.

@jhonnymichel jhonnymichel self-assigned this Aug 30, 2019
@jhonnymichel
Copy link
Owner Author

@ejkkan as the original author of the feature, could you tell me how you feel about the change?

@ejkkan
Copy link

ejkkan commented Aug 31, 2019

It think this brings a more versatile usage of the subscriber! Good job!
Looking forward to use it.

@jhonnymichel jhonnymichel merged commit 8185950 into master Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants