Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

194
Vistas
Updating thousands of react children via parent websocket

Scenario context: App displays "watchlists" of various stock ticker prices in a list. The user can add however many "watchlists" as he/she pleases. Each watchlist contains stock items, which display last price etc...

Current Hierarchy:

  • Container (Grandparent) connects to stock data websocket, houses watchlists, passes websocket message down via props
    • Watchlist (Parent) houses stock items, passes websocket data to child via props
      • Stock item (Child) renders stock prices from websocket data prop

Attempted designs: I have tried a couple designs, they all function but they are not performant.

  1. Pass websocket data from Grandparent -> parent -> child via props (Slow, re-renders all watchlists)
  2. Each child listens on websocket to render stock price (Very slow, a single websocket cannot listen to hundreds or thousands of watchlists)

Question: What is an efficient and performant component design for reading a single data source (Grandparent's websocket data in my case) in hundreds or thousands of react children? How it looks on the UI for reference

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda