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

Added unsubscribe to the theme listener #48

Merged
merged 1 commit into from
Dec 18, 2017
Merged

Added unsubscribe to the theme listener #48

merged 1 commit into from
Dec 18, 2017

Conversation

TriPSs
Copy link
Member

@TriPSs TriPSs commented Dec 18, 2017

Added the unsubscribe function so we can unsubscribe from the theme-listener in react-jss

This PR goes together with react-jss - 187

@kof kof merged commit 7ecca32 into cssinjs:master Dec 18, 2017
@kof
Copy link
Member

kof commented Dec 18, 2017

thanks!

@kof
Copy link
Member

kof commented Dec 18, 2017

Damn, just realized, subscribe function returns an unsubscribe function, there is no need in separate unsubscribe function. Why??????

@TriPSs
Copy link
Member Author

TriPSs commented Dec 18, 2017

Because I logged it and the only thing I got back was an ID

@kof
Copy link
Member

kof commented Dec 19, 2017

Wow, true, turns out brcast library has changed!

@kof
Copy link
Member

kof commented Dec 19, 2017

And the reason was a performance optimization.

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