Skip to content

Commit fe8468d

Browse files
committed
Update README to clarify preloadOrderSuccess function for order success CSS
1 parent afaa204 commit fe8468d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blocks/commerce-checkout-success/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ No localStorage keys are used by this block.
3030

3131
- `default export decorate(block)` — Renders the success view into the provided block element.
3232
- `export async function renderOrderSuccess(container, { orderData } = {})` — Renders the success view into `container`. Pass `orderData` to provide pre-fetched order data; otherwise the Order drop-in will fetch it when possible (not possible when placing an order as a guest using an email address that’s already associated with an existing account).
33-
- `export function preloadOrderSuccess()` — Preloads the success page CSS. Call this ahead of navigation to the success page.
33+
- `export function preloadOrderSuccess()` — Preloads the order success CSS. Call this before `renderOrderSuccess`.
3434

3535
Example (programmatic):
3636

0 commit comments

Comments
 (0)