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

Function update

hooks/use-toast.ts:143–147  ·  view source on GitHub ↗
(props: ToasterToast)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

dispatchFunction · 0.70

Tested by

no test coverage detected