glitch-soc/mastodon

View on GitHub
app/javascript/flavours/glitch/actions/notifications_migration.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { createAppAsyncThunk } from 'flavours/glitch/store';

import { fetchNotifications } from './notification_groups';

export const initializeNotifications = createAppAsyncThunk(
  'notifications/initialize',
  (_, { dispatch }) => {
    void dispatch(fetchNotifications());
  },
);