mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-12-02 13:00:28 -05:00
11 lines
280 B
TypeScript
11 lines
280 B
TypeScript
import { createAppAsyncThunk } from 'mastodon/store';
|
|
|
|
import { fetchNotifications } from './notification_groups';
|
|
|
|
export const initializeNotifications = createAppAsyncThunk(
|
|
'notifications/initialize',
|
|
(_, { dispatch }) => {
|
|
void dispatch(fetchNotifications());
|
|
},
|
|
);
|