Skip to content

Commit 63a7174

Browse files
mjacksonMichael Jackson
authored andcommitted
Tweak property name
1 parent 917b24a commit 63a7174

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/createContext.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ function createContext(defaultValue) {
9191
broadcasts: {
9292
...this.context.broadcasts,
9393
[channel]: {
94-
initialValue: this.props.value,
95-
subscribe: this.subscribe
94+
subscribe: this.subscribe,
95+
value: this.props.value
9696
}
9797
}
9898
};
@@ -130,7 +130,7 @@ function createContext(defaultValue) {
130130
broadcast = this.context.broadcasts && this.context.broadcasts[channel];
131131

132132
state = {
133-
value: this.broadcast ? this.broadcast.initialValue : defaultValue
133+
value: this.broadcast ? this.broadcast.value : defaultValue
134134
};
135135

136136
componentDidMount() {

0 commit comments

Comments
 (0)