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

Function setSuccessMessage

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

Source from the content-addressed store, hash-verified

22});
23
24export function setSuccessMessage(
25 session: Session,
26 message: string,
27 title: string
28) {
29 session.flash("toastMessage", {
30 message,
31 title,
32 type: "success",
33 id: crypto.randomUUID(),
34 });
35}
36
37export function setErrorMessage(
38 session: Session,

Callers 1

actionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected