How SuiteCommerce Rehydration Addresses Stale Content

Note:

This topic explains how SuiteCommerce helps minimize incorrect pricing and stock availability information during the transition to interactivity. It also describes a recommended approach for custom components. This topic is intended for a developer audience.

Rehydration displays prerendered HTML immediately. However, prerendered content doesn't always reflect the latest item details or shopper-specific state. Instead of treating the whole page as stale, SuiteCommerce applies targeted safeguards to data-driven fields that are likely to change.

How SuiteCommerce Keeps Sections Stable During Rehydration

SuiteCommerce uses the data-cms-area and data-view selectors to keep prerendered child content intact during rehydration. This includes CMS-driven content and standard view regions, and it helps prevent flicker when the SPA attaches to the existing DOM.

Note:

You can't configure the data-cms-area and data-view selectors or this behavior.

Read the following topics to learn more about SuiteCommerce rehydration works with data-driven fields:

Related Topics

General Notices