MCPcopy Create free account
hub / github.com/dailydotdev/apps / displayToast

Function displayToast

packages/shared/src/hooks/useToastNotification.ts:78–81  ·  view source on GitHub ↗
(
    message: ReactNode,
    { timer = 5000, ...props }: NotifyOptionalProps = {},
  )

Source from the content-addressed store, hash-verified

76 client.setQueryData(TOAST_NOTIF_KEY, data);
77
78 const displayToast = (
79 message: ReactNode,
80 { timer = 5000, ...props }: NotifyOptionalProps = {},
81 ) => setToastNotification({ message, timer, ...props });
82
83 return useMemo(
84 () => ({

Callers 15

PlusIOSFunction · 0.85
handleFilesFunction · 0.85
ComponentWithToastFunction · 0.85
guardedModerationActionFunction · 0.85
handleSendChatMessageFunction · 0.85
handleDeleteChatMessageFunction · 0.85
LiveRoomInnerFunction · 0.85

Calls 1

setToastNotificationFunction · 0.85

Tested by 1

ComponentWithToastFunction · 0.68