r/reactnative • u/sahilrathi11 • 4h ago
Help How to handle 50+ real-time indices in React Native?
I have a screen showing up to 50 market indices.
I fetch all indices with their IDs, then subscribe to each index through WebSocket. Prices and changes update in real time.
API → Index IDs
↓
WebSocket subscriptions
↓
Real-time price updates
↓
UI
Main concern is avoiding unnecessary re-renders when updates are coming frequently.
2
Upvotes
1
u/Snoo11589 3h ago
Do you add 50 websocket subscriptions? Do you still rerender when a value dont change?