Closed mirjan-hoffmann closed 2 years ago
Any updates on that one? It seems like the PR doesn't actually solve the problem for me. MultiList renders so much that it always maxes the bars in React Profiler and crashes my app. 3.25.0 seems a more reliable version for MultiList.
Using those versions as dependencies solved all my problems.
{ "dependencies": { "@appbaseio/reactivecore": "9.14.10", "@appbaseio/reactivesearch": "3.25.0" } }
Hello @ubaranzorlu, can you try upgrading to latest version?
Upgraded to "@appbaseio/reactivesearch": "3.34.1"
- performance looks good with this one. Also, my sandbox-example just logs a single re-rendering: https://codesandbox.io/s/xenodochial-bhaskara-wvjhfm
-> fixed from my point of view
Hello @ubaranzorlu, can you try upgrading to latest version?
Issue is resolved, thanks 👍
Affected Projects React
Library Version: x.y.z from 3.25.1 (also in current version 3.31.0)
Describe the bug When a
MultiList
component is updated viareact
-property (e.g. to update the document-counter), the component is re-rendered very often. This affects performance significantly.To Reproduce https://codesandbox.io/s/crazy-sinoussi-3j9mbd?file=/src/index.js Steps to reproduce the behavior:
Expected behavior Re-render the MultiList component only once, like in version 3.25.0
Same codesandbox like above, just with decreased reactivesearch version to 3.25.0: https://codesandbox.io/s/blissful-goldberg-6x1wvz?file=/src/index.js
Screenshots![reactivesearch_multiple_rerender](https://user-images.githubusercontent.com/19548499/169779649-8966ad17-5394-46eb-95db-71b1efc16dfe.png)
Desktop (please complete the following information):
Smartphone (please complete the following information): N/A
Additional context N/A