Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Object.observe remove in chrome 50

I had a warning message in Chrome, this one notice that Object.observe method is deprecated and will be removed in Chrome 50 around April 2016.

Have you an alternative solution to replace Object.observe ?

Thanks

like image 265
03t02 Avatar asked Mar 27 '26 12:03

03t02


1 Answers

So it was depricated and will be removed because of some problem with perfomance. Please see this link http://www.infoq.com/news/2015/11/object-observe-withdrawn

I think you should look into RxJS library and it's Observable

Using RxJS, you can represent multiple asynchronous data streams (that come from diverse sources, e.g., stock quote, tweets, computer events, web service requests, etc.), and subscribe to the event stream using the Observer object. The Observable notifies the subscribed Observer instance whenever an event occurs.

https://github.com/Reactive-Extensions/RxJS/

like image 175
VladosJS Avatar answered Mar 31 '26 07:03

VladosJS



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!