MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / setErrorMessage

Function setErrorMessage

app/services/toast.server.ts:37–48  ·  view source on GitHub ↗
(
  session: Session,
  message: string,
  title: string
)

Source from the content-addressed store, hash-verified

35}
36
37export function setErrorMessage(
38 session: Session,
39 message: string,
40 title: string
41) {
42 session.flash("toastMessage", {
43 message,
44 title,
45 type: "error",
46 id: crypto.randomUUID(),
47 });
48}

Callers 2

actionFunction · 0.90
actionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected