File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments