MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / update

Function update

web/src/components/ui/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.85

Tested by

no test coverage detected