Przeglądaj źródła

getting socket data on the client side

kaori 4 lat temu
rodzic
commit
fbefe1f07f

+ 6 - 2
packages/app/src/components/PageEditor/InAppNotificationDropdown.tsx

@@ -30,10 +30,14 @@ const InAppNotificationDropdown: FC = (props) => {
 
     const socket = props.socketIoContainer.getSocket();
     socket.on('comment updated', (data: { user: string }) => {
-      console.log('socket', socket);
-      // props.crowi.getWebSocket().on('comment updated', (data: { user: string }) => {
+      // eslint-disable-next-line no-console
+      console.log('socketData', data);
+
       if (props.me === data.user) {
+        // TODO: Fetch notification status by GW-7473
         // fetchNotificationList();
+
+        // TODO: Fetch notification list by GW-7473
         // fetchNotificationStatus();
       }
     });