Access reader store setters directly without hook

This commit is contained in:
schroda
2026-02-21 15:34:17 +01:00
parent 75cf18b254
commit daeb2a4e45
21 changed files with 118 additions and 216 deletions

View File

@@ -27,7 +27,6 @@ import {
getReaderAutoScrollStore,
getReaderOverlayStore,
getReaderSettingsStore,
getReaderTapZoneStore,
useReaderSettingsStore,
} from '@/features/reader/stores/ReaderStore.ts';
@@ -92,7 +91,6 @@ export const ReaderHotkeys = ({
readingMode.value,
readingDirection.value,
scrollElementRef.current,
getReaderTapZoneStore().setShowPreview,
scrollAmount,
);
});
@@ -115,7 +113,6 @@ export const ReaderHotkeys = ({
readingMode.value,
readingDirection.value,
scrollElementRef.current,
getReaderTapZoneStore().setShowPreview,
scrollAmount,
);
});