File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4
4
broadcasts as broadcastsType
5
5
} from './PropTypes'
6
6
7
- const createBroadcast = ( channel , initialValue ) => {
7
+ const createBroadcast = ( initialValue ) => {
8
8
let listeners = [ ]
9
9
let currentValue = initialValue
10
10
@@ -49,8 +49,8 @@ class Broadcast extends React.Component {
49
49
}
50
50
51
51
getBroadcastsContext ( ) {
52
- const { broadcasts } = this . context
53
52
const { channel } = this . props
53
+ const { broadcasts } = this . context
54
54
55
55
return {
56
56
...broadcasts ,
@@ -65,7 +65,7 @@ class Broadcast extends React.Component {
65
65
}
66
66
67
67
componentWillMount ( ) {
68
- this . broadcast = createBroadcast ( this . props . channel , this . props . value )
68
+ this . broadcast = createBroadcast ( this . props . value )
69
69
}
70
70
71
71
componentWillReceiveProps ( nextProps ) {
You can’t perform that action at this time.
0 commit comments