-
Notifications
You must be signed in to change notification settings - Fork 39
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
Update brcast to ^3.0.1 #38
Conversation
BREAKING CHANGE: themeListener.subscribe returns subscriptionId intead of function. To unsubscribe you have to call themeListener.unsubscribe(subscriptionId) Fix tests
@oliviertassinari Can you check this? |
@darkowic I have been reducing the dependency on react-jss. By directly importing required modules, I would expect theming to no longer be required. |
themeListener.unsubscribe(this.context, this.subscriptionId); | ||
} | ||
``` | ||
``` |
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.
shouldn't be there, righT?
@@ -91,7 +91,7 @@ | |||
"rimraf": "^2.6.1" | |||
}, | |||
"dependencies": { | |||
"brcast": "^2.0.0", | |||
"brcast": "^3.0.1", |
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.
this is an actual change corresponding the pr, or is there something else?
@@ -18,13 +18,20 @@ export default function createThemeListener(CHANNEL = channel) { | |||
|
|||
function subscribe(context, cb) { | |||
if (context[CHANNEL]) { | |||
return context[CHANNEL].subscribe(cb); | |||
return context[CHANNEL].subscribe(cb); |
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.
formatting fixes should always go separate so that we know what has happened in a commit
@@ -7,3 +7,4 @@ dist | |||
shrinkwrap.* | |||
.nyc_output | |||
coverage | |||
.idea |
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.
completely unrelated
@darkowic I know its a long due, can you please clean up the pr, separate the commits or even better send separate PRs? |
BREAKING CHANGE: themeListener.subscribe returns subscriptionId intead of function. To unsubscribe you have to call themeListener.unsubscribe(subscriptionId)
Resolves #36