Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(commerce): properly memoize suggestions controllers #4184

Merged
merged 9 commits into from
Jul 19, 2024

Conversation

Spuffynism
Copy link
Contributor

@Spuffynism Spuffynism commented Jul 15, 2024

Field suggestions controllers weren't being updated because we were memoizing their generation only on the list of facets, which did not change when field suggestions values changed. Now, we include the facet set (which includes facet values), to the function on which to memoize. This ensures the field suggestions controllers are update with the right values.

CAPI-1102

Copy link

Pull Request Report

PR Title

✅ Title follows the conventional commit spec.

Live demo links

Bundle Size

File Old (kb) New (kb) Change (%)
case-assist 244.9 244.9 0
commerce 341.1 341.4 0.1
search 413.5 413.5 0
insight 392.3 392.3 0
product-listing 306.9 306.9 0
product-recommendation 211.2 211.2 0
recommendation 258 258 0
ssr 404.8 404.8 0

SSR Progress

Use case SSR (#) CSR (#) Progress (%)
search 39 44 89
recommendation 0 4 0
product-recommendation 0 10 0
product-listing 0 13 0
case-assist 0 6 0
insight 0 27 0
commerce 0 15 0
Detailed logs search : buildInteractiveResult
search : buildInteractiveInstantResult
search : buildInteractiveRecentResult
search : buildInteractiveCitation
search : buildGeneratedAnswer
recommendation : missing SSR support
product-recommendation : missing SSR support
product-listing : missing SSR support
case-assist : missing SSR support
insight : missing SSR support
commerce : missing SSR support

@Spuffynism Spuffynism added this pull request to the merge queue Jul 19, 2024
auto-merge was automatically disabled July 19, 2024 18:53

Pull Request is not mergeable

Merged via the queue into master with commit b5d226b Jul 19, 2024
117 checks passed
@Spuffynism Spuffynism deleted the fix-capi-1102-immediately-fetch-field-suggestions branch July 19, 2024 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants