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

[template/angular] Prevent client-side dictionary API call when SSR data is available #1930

Merged
merged 5 commits into from
Sep 13, 2024

Conversation

addy-pathania
Copy link
Contributor

@addy-pathania addy-pathania commented Sep 13, 2024

Description / Motivation

When SSR is executed, the data is pre-fetched and populated by Node.js server. However the DictionaryService API call is still executed in a browser on initial page load. We now transfer the pre-fetched SSR data to the client, preventing unnecessary client-side API calls and improving app's performance.

Testing Details

  • Unit Test Added
  • Manual Test/Other (Please elaborate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@addy-pathania addy-pathania requested a review from a team September 13, 2024 01:33
Copy link
Contributor

@yavorsk yavorsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! 👍

Copy link
Contributor

@illiakovalenko illiakovalenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@addy-pathania For the customers, please, add a note in Upgrade guide in order to let them know about this performance optimization

docs/upgrades/unreleased.md Outdated Show resolved Hide resolved
docs/upgrades/unreleased.md Outdated Show resolved Hide resolved
@addy-pathania addy-pathania merged commit d93e3b5 into dev Sep 13, 2024
1 check passed
@addy-pathania addy-pathania deleted the bugfix/jss-3851-dictionary-api-call branch September 13, 2024 16:59
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.

4 participants