CookieSessionStorage component is the default session storage mechanism for Hydrogen.
Example codeAnchor link to section titled "Example code"
||The name of the cookie stored in the browser.|
||An optional object to configure how the cookie is persisted in the browser.|
Component typeAnchor link to section titled "Component type"
CookieSessionStorage component is a server component that renders inside
App.server.jsx. For more information about component types, refer to React Server Components.
ConsiderationsAnchor link to section titled "Considerations"
CookieSessionStorage if you expect to have more than 4kb of data within sessions.