clear cache properly and without hacky window reload

This commit is contained in:
sam committed 2025-10-18 18:54:48 +07:00
1 parent d72fc80cc5
commit 114eb13ce6
3 files changed
+33 -15

No files matched your search

+2 -2
View File
@@ -21,7 +21,7 @@ const Messages = () => {
const [selectedPubkey, setSelectedPubkey] = useState<string | null>(null);
const [statusModalOpen, setStatusModalOpen] = useState(false);
const isMobile = useIsMobile();
const { clearCache } = useDMContext();
const { clearCacheAndReload } = useDMContext();
useSeoMeta({
title: 'Messages',
@@ -66,7 +66,7 @@ const Messages = () => {
View loading status, cache info, and connection details
</DialogDescription>
</DialogHeader>
<DMStatusInfo clearCache={clearCache} />
<DMStatusInfo clearCacheAndReload={clearCacheAndReload} />
</DialogContent>
</Dialog>
</div>