Missing slot content

Learn how to provide slot content for server rendering.

If you see the error below when using the useContent hook or <Slot> component, no initial content was available to render on the server:

The content is fetched on the client when using the hook or component, so an initial value is required to render it on the server first.

On Hydrogen, fetch the content in a loader with fetchContent and pass it to the component, as shown in the content rendering guide. This renders personalized content on the server with no flicker.