React with web sockets causing expensive re rendering

28
August 01, 2019, at 11:20 PM

Problem :-- I am using web socket stream to pushing data from server to client every seconds. As client is receiving every second and it is causing lots of re rendering.

Additional Info -- I am using react-redux version 7.0.2. Components are receiving data by using mapStateToProps method of connect API.

Question :-- What is the best way to reduce this extra re rendering ? Should I put comparison logic in reducer to check if anything gets change then provide a new modified state else return same. If not in reducer what would be the best way to achieve it? If you could provide any method from any library, would be great to have an example with it.

Please let me know if any extra needed.

READ ALSO
How to define dependencies of a module that npm or yarn won't install it at the module's dependents?

How to define dependencies of a module that npm or yarn won't install it at the module's dependents?

I am developing a NPM packageIt has a dependency, let call that dependency webpack@4

31
React Apollo graphql enricher not working

React Apollo graphql enricher not working

For some reason the graphql higher order function is not behaving as expected, specifically the query is not even being calledThis is what I have right now:

51
javascript make bucket of google cloud storage public to a specific URL or website

javascript make bucket of google cloud storage public to a specific URL or website

Firebase hosting my websiteWebsite has a <iframe> element, it will load aaa

41