Sitecore / jss

Software development kit for JavaScript developers building web applications with Sitecore Experience Platform
https://jss.sitecore.com
Apache License 2.0
263 stars 275 forks source link

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

Closed addy-pathania closed 2 months ago

addy-pathania commented 2 months ago

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

Types of changes