Repository navigation
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 16 |
TIP This summary will be updated as you push new changes.
More templates
algoliasearch-helper
instantsearch-ui-components
instantsearch.css
instantsearch.js
react-instantsearch
react-instantsearch-core
react-instantsearch-nextjs
react-instantsearch-router-nextjs
vue-instantsearch
commit: |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Size Change: +384 B (+0.04%) Total Size: 1.04 MB 📦 View Changed
ℹ️ View Unchanged
|
Haroenv
force-pushed
the
perf/compare-single-render
branch
from
October 16, 2026 15:21
529d301 to
2a3d9e0
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changing the compare selection rendered every
comparewidget twice: once from the store listeners and once from thescheduleRender()that followed.notifystill schedules the full render, which re-renders thecomparewidgets together with anything readingrenderState.compare(for example ahitstemplate button) and emits the instancerenderevent. Each listener now renders directly only when the full render would skip its widget, that is while its parent index has no results yet. In that case it also refreshesrenderState[indexId].compare.Result
Each
comparewidget renders once per selection change: from the scheduled render once results exist, synchronously from the listener before the first results. Non-compare widgets readingrenderState.comparestill re-render. Tests countrenderFncalls pertoggleItemwith two widgets on a real InstantSearch instance, and cover a plain widget reading the compare render state.🤖 Generated with Claude Code