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

Function displayNotification

packages/shared/src/hooks/useInAppNotification.ts:51–56  ·  view source on GitHub ↗
(
    payload: NewNotification,
    { timer = 5000 }: NotifyOptionalProps = {},
  )

Source from the content-addressed store, hash-verified

49 client.setQueryData(IN_APP_NOTIFICATION_KEY, data);
50
51 const displayNotification = (
52 payload: NewNotification,
53 { timer = 5000 }: NotifyOptionalProps = {},
54 ) => {
55 setInAppNotification({ notification: payload, timer });
56 };
57
58 const addToQueue = (newNotification: NewNotification) => {
59 if (!newNotification || registeredNotification[newNotification.id]) {

Callers 2

addToQueueFunction · 0.85
dismissNotificationFunction · 0.85

Calls 1

setInAppNotificationFunction · 0.85

Tested by

no test coverage detected