addSectionsToRender()
addSectionsToRender(
sections):void
Parameters
| Parameter | Type | Description |
|---|---|---|
sections | string[] | CSS selectors of the elements hosting the cart sections to re-render after every cart mutation, on top of the Dawn-style defaults. |
Returns
void
Deprecated
Needed only where the theme's cart markup is not recognized. Don't call it when Cart Actions refresh the theme correctly - the theme then renders its own cart and these sections would be rendered twice.