I have a ponent with a couple of input fields that updates the state of the ponent using the valueLink={this.linkState('foo')}
facility provided by React.addons.LinkedStateMixin
.
Prior to this I was using the onChange
handler to municate the changes back to the server using a websocket connection, so I was wondering if I could replicate this behaviour somewhat and post the changes in the state back using a "state change listener" of some sorts?
I have a ponent with a couple of input fields that updates the state of the ponent using the valueLink={this.linkState('foo')}
facility provided by React.addons.LinkedStateMixin
.
Prior to this I was using the onChange
handler to municate the changes back to the server using a websocket connection, so I was wondering if I could replicate this behaviour somewhat and post the changes in the state back using a "state change listener" of some sorts?
1 Answer
Reset to default 11Looks like the method I am looking for is ponentDidUpdate()