You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Previous commit only reset loading status and reloaded the image correctly
if the `src` prop was changed. If `delayMs` wash change, the loading
status was reset, but `onload()` never fired. Reverting to using `getters`
- Add `MaybeGetter` to Avatar props
"propsAlt": "export type AvatarProps = {\n /**\n * The source of the image to display.\n */\n src?: string;\n\n /**\n * The amount of time in milliseconds to wait before displaying the image.\n *\n * @default 0\n */\n delayMs?: number;\n\n /**\n * A callback invoked when the loading status store of the avatar changes.\n */\n onLoadingStatusChange?: (value: ImageLoadingStatus) => void;\n};"
599
+
"propsAlt": "export type AvatarProps = {\n /**\n * The source of the image to display.\n */\n src?: MaybeGetter<string | undefined>;\n\n /**\n * The amount of time in milliseconds to wait before displaying the image.\n *\n * @default 0\n */\n delayMs?: MaybeGetter<number | undefined>;\n\n /**\n * A callback invoked when the loading status store of the avatar changes.\n */\n onLoadingStatusChange?: MaybeGetter<(value: ImageLoadingStatus) => void | undefined>;\n};"
0 commit comments