We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 917b24a commit 63a7174Copy full SHA for 63a7174
modules/createContext.js
@@ -91,8 +91,8 @@ function createContext(defaultValue) {
91
broadcasts: {
92
...this.context.broadcasts,
93
[channel]: {
94
- initialValue: this.props.value,
95
- subscribe: this.subscribe
+ subscribe: this.subscribe,
+ value: this.props.value
96
}
97
98
};
@@ -130,7 +130,7 @@ function createContext(defaultValue) {
130
broadcast = this.context.broadcasts && this.context.broadcasts[channel];
131
132
state = {
133
- value: this.broadcast ? this.broadcast.initialValue : defaultValue
+ value: this.broadcast ? this.broadcast.value : defaultValue
134
135
136
componentDidMount() {
0 commit comments