MCPcopy Create free account
hub / github.com/editablejs/editable / updateStatus

Function updateStatus

packages/ui/src/avatar.tsx:124–127  ·  view source on GitHub ↗
(status: ImageLoadingStatus)

Source from the content-addressed store, hash-verified

122 const image = new window.Image()
123
124 const updateStatus = (status: ImageLoadingStatus) => () => {
125 if (!isMounted) return
126 setLoadingStatus(status)
127 }
128
129 setLoadingStatus('loading')
130 image.onload = updateStatus('loaded')

Callers 1

useImageLoadingStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…