MCPcopy Create free account
hub / github.com/Seanium/ChatMap / update

Function update

components/ui/use-toast.ts:131–135  ·  view source on GitHub ↗
(props: ToasterToast)

Source from the content-addressed store, hash-verified

129 const id = genId()
130
131 const update = (props: ToasterToast) =>
132 dispatch({
133 type: "UPDATE_TOAST",
134 toast: { ...props, id },
135 })
136 const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id })
137
138 dispatch({

Callers

nothing calls this directly

Calls 1

dispatchFunction · 0.70

Tested by

no test coverage detected