MCPcopy Create free account
hub / github.com/F12FLASH/CTF / update

Function update

4.Stackless Stack/client/src/hooks/use-toast.ts:145–149  ·  view source on GitHub ↗
(props: ToasterToast)

Source from the content-addressed store, hash-verified

143 const id = genId()
144
145 const update = (props: ToasterToast) =>
146 dispatch({
147 type: "UPDATE_TOAST",
148 toast: { ...props, id },
149 })
150 const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id })
151
152 dispatch({

Callers

nothing calls this directly

Calls 1

dispatchFunction · 0.70

Tested by

no test coverage detected