MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / update

Function update

packages/web/src/components/hooks/use-toast.ts:148–152  ·  view source on GitHub ↗
(props: ToasterToast)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

dispatchFunction · 0.85

Tested by

no test coverage detected