mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-29 13:09:04 +01:00
10 lines
280 B
TypeScript
10 lines
280 B
TypeScript
import { createAppAsyncThunk } from 'mastodon/store';
|
|
|
|
import { fetchNotifications } from './notification_groups';
|
|
|
|
export const initializeNotifications = createAppAsyncThunk(
|
|
'notifications/initialize',
|
|
(_, { dispatch }) => {
|
|
void dispatch(fetchNotifications());
|
|
},
|
|
);
|