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

Function dismissNotification

packages/shared/src/hooks/useInAppNotification.ts:74–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 };
73
74 const dismissNotification = () => {
75 if (queue.length) {
76 displayNotification(queue.shift());
77 return;
78 }
79 setInAppNotification(null);
80 };
81
82 const clearNotifications = () => {
83 queue.length = 0;

Callers 2

InAppNotificationElementFunction · 0.85
clearNotificationsFunction · 0.85

Calls 2

displayNotificationFunction · 0.85
setInAppNotificationFunction · 0.85

Tested by

no test coverage detected