A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
refactor: add the ability to poll for notifications
robin87fc998f927f
diff --git a/ui/src/services/notification.api.ts b/ui/src/services/notification.api.tsindex e9659aa7..9ab4e94e 100644--- a/ui/src/services/notification.api.ts+++ b/ui/src/services/notification.api.ts@@ -36,6 +36,9 @@ export const useQueryNotificationRedDot = () => {return useSWR<{ inbox: number; achievement: number }>(isLogin() ? apiUrl : null,request.instance.get,+ {+ refreshInterval: 3000,+ },);};