MCPcopy Create free account
hub / github.com/Thanas-R/Virdis / update

Function update

src/hooks/use-toast.ts:140–144  ·  view source on GitHub ↗
(props: ToasterToast)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

dispatchFunction · 0.85

Tested by

no test coverage detected