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(headless commerce SSR): fix react provider hydration logic #4792

Merged
merged 4 commits into from
Dec 17, 2024

Conversation

y-lakhdar
Copy link
Contributor

@y-lakhdar y-lakhdar commented Dec 16, 2024

Hydration Logic

Pass the appropriate object to the hydrateStaticState method instead of all the controllers from the static state.

Typing changes

Clearer engine definition type

Before πŸ˜΅β€πŸ’«

image

After (a bit better)

image

Support type completion in provider arguments

Before πŸ˜”

image

After πŸ˜€

image

https://coveord.atlassian.net/browse/KIT-3807

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 242.9 242.9 0
commerce 353.9 353.9 0
search 414 414 0
insight 405.2 405.2 0
recommendation 255.1 255.1 0
ssr 407.4 407.4 0
ssr-commerce 370.9 370.9 0

SSR Progress

Use case SSR (#) CSR (#) Progress (%)
search 39 44 89
recommendation 0 4 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
case-assist : missing SSR support
insight : missing SSR support
commerce : missing SSR support

@y-lakhdar y-lakhdar added this pull request to the merge queue Dec 17, 2024
Merged via the queue into master with commit 69efd25 Dec 17, 2024
95 checks passed
@y-lakhdar y-lakhdar deleted the KIT-3807 branch December 17, 2024 18:46
fpbrault pushed a commit that referenced this pull request Dec 17, 2024
# Hydration Logic
Pass the appropriate object to the `hydrateStaticState` method instead
of all the controllers from the static state.

# Typing changes
## Clearer engine definition type
### Before πŸ˜΅β€πŸ’«

![image](https://github.com/user-attachments/assets/55b1091a-8d1d-4125-92b8-a7c5a9a47993)

### After (a bit better)

![image](https://github.com/user-attachments/assets/fcaab4a7-6ac1-469e-92b6-f375fa299440)

## Support type completion in provider arguments
### Before πŸ˜”

![image](https://github.com/user-attachments/assets/b57fff20-5f47-4786-921d-155f229d6850)

### After πŸ˜€

![image](https://github.com/user-attachments/assets/ea8668f6-fe7c-4d04-a5f8-e6cfa134afc3)


https://coveord.atlassian.net/browse/KIT-3807
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