pl-fe: zustand improvements

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-10-22 21:58:05 +02:00
parent ea86246647
commit ec298b1294
84 changed files with 180 additions and 179 deletions

View File

@@ -15,7 +15,7 @@ import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch';
import { useLoggedIn } from 'pl-fe/hooks/use-logged-in';
import messages from 'pl-fe/messages';
import { queryClient } from 'pl-fe/queries/client';
import { useSettingsStore } from 'pl-fe/stores/settings';
import { useSettings } from 'pl-fe/stores/settings';
import { getUnreadChatsCount, updateChatListItem } from 'pl-fe/utils/chats';
import { play, soundCache } from 'pl-fe/utils/sounds';
@@ -103,7 +103,7 @@ const useUserStream = () => {
const { isLoggedIn } = useLoggedIn();
const dispatch = useAppDispatch();
const statContext = useStatContext();
const { settings } = useSettingsStore();
const settings = useSettings();
const listener = useCallback((event: StreamingEvent) => {
switch (event.event) {