Thursday, May 23, 2024
 Popular · Latest · Hot · Upcoming
121
rated 0 times [  128] [ 7]  / answers: 1 / hits: 25022  / 10 Years ago, fri, october 31, 2014, 12:00:00

I have a component with a couple of input fields that updates the state of the component using the valueLink={this.linkState('foo')} facility provided by React.addons.LinkedStateMixin.


Prior to this I was using the onChange handler to communicate 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?


More From » reactjs

 Answers
20

Looks like the method I am looking for is componentDidUpdate()


[#68949] Wednesday, October 29, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
haleeg

Total Points: 703
Total Questions: 100
Total Answers: 98

Location: Dominica
Member since Sat, Nov 5, 2022
2 Years ago
haleeg questions
Thu, Oct 7, 21, 00:00, 3 Years ago
Sat, Jul 24, 21, 00:00, 3 Years ago
Mon, Sep 7, 20, 00:00, 4 Years ago
;