Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 4f50202

Browse files
vitbokischclaude
andcommitted
Restore reactive getters for srcSet (0.7.12 supports them)
srcSet now accepts () => string in @pyreon/core 0.7.12 types. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4f1d300 commit 4f50202

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/zero/src/image.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export function Image(props: ImageProps): VNodeChild {
102102
const imgEl = (
103103
<img
104104
src={() => (inView() ? props.src : '')}
105-
srcSet={
105+
srcSet={() =>
106106
!hasFormats && inView() && resolvedSrcset ? resolvedSrcset : ''
107107
}
108108
sizes={resolvedSrcset ? sizes : undefined}
@@ -154,7 +154,7 @@ export function Image(props: ImageProps): VNodeChild {
154154
{props.formats?.map((fmt) => (
155155
<source
156156
type={fmt.type}
157-
srcSet={inView() ? fmt.srcset ?? "" : ""}
157+
srcSet={() => inView() ? fmt.srcset ?? '' : ''}
158158
sizes={sizes}
159159
/>
160160
))}

0 commit comments

Comments
 (0)