Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

ReactiveComponent re renders custom component within render props

オープン
#1,704 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@bietkul がすでに取り組んでいます。

2021年7月1日 から。

評価

この issue はまだ評価されていません。

説明

bug

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
image

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

主要言語
JavaScript
スター
4.9k
フォーク
479
平均マージ
4日 10時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

appbaseio/reactivesearch のほかの issue

appbaseio/reactivesearch の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。