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
document a better way to detect onLoad for images #4481
constimgRef=useSignal<HTMLImageElement>();useVisibleTask$(()=>{imgRef.value!.decode().then(()=>{console.log('loaded and ready!');});});// other logic etcreturn(<section><imgref=[imgRef}srf="some-source.png"height={200}width={200}/></section>);
The text was updated successfully, but these errors were encountered:
Suggestion
document a better way to detect onLoad for images
#4481
The text was updated successfully, but these errors were encountered: