Skip to content

Commit 7b73172

Browse files
committed
fix(image): Change children to fallback
1 parent 2f586eb commit 7b73172

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/start/src/image/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export interface StartImageProps<T> {
1616
transformer?: StartImageTransformer<T>;
1717

1818
onLoad?: () => void;
19-
children: (visible: () => boolean, onLoad: () => void) => JSX.Element;
19+
fallback: (visible: () => boolean, onLoad: () => void) => JSX.Element;
2020

2121
crossOrigin?: JSX.HTMLCrossorigin | undefined;
2222
fetchPriority?: "high" | "low" | "auto" | undefined;
@@ -109,7 +109,7 @@ export function StartImage<T>(props: StartImageProps<T>): JSX.Element {
109109
</div>
110110
<div style={BLOCKER_STYLE}>
111111
<ClientOnly>
112-
<Show when={laze.visible}>{props.children(showPlaceholder, onPlaceholderLoad)}</Show>
112+
<Show when={laze.visible}>{props.fallback(showPlaceholder, onPlaceholderLoad)}</Show>
113113
</ClientOnly>
114114
</div>
115115
</div>

0 commit comments

Comments
 (0)