appbaseio / appbaseio/reactivesearch

ReactiveComponent re renders custom component within render props

Abierto
#1,704 1 comentario 0 reacciones 1 asignado Reclamado por @bietkul Ver en GitHub
bug
Lenguaje dominante
JavaScript
Estrellas
4.9k
Forks
478
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**Affected Projects**
React

**Library Version:** x.y.z
^3.18.1

**Describe the bug**
When utilizing `ReactiveComponent` and rendering a custom component in `render` prop. ReactiveComponent re renders numerous number of times causing performance issues.

**To Reproduce**
https://codesandbox.io/s/reactive-component-re-renders-ynqth?file=/src/index.js
In a small code sandbox implementation, the sandbox console outputs the re rendered value within the render props.

Within a bare bones implementation in production environment the component is rendered more than 200 times.
**Expected behavior**
The component in render props should only be rendered once than multiple times.

**Screenshots**
![image](https://user-images.githubusercontent.com/66189547/120541891-73417300-c3b8-11eb-8e90-110f527ecda0.png)
![image](https://user-images.githubusercontent.com/66189547/120542088-aedc3d00-c3b8-11eb-9f4b-ab18fd74e025.png)

**Desktop (please complete the following information):**
- OS: [Windows 10]
- Browser: [Chrome ]
- Version [90.0.4430.212 ]

**Smartphone (please complete the following information):**
N/A

**Additional context**
N/A

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.