From 1fb3c6f474256b643b1bd02dcff75f09351cca49 Mon Sep 17 00:00:00 2001 From: AmirHossein Mahmoodi Date: Sat, 10 May 2025 10:27:38 +0330 Subject: [PATCH] add new cache swr provider --- src/app/(withAuth)/(dashboardLayout)/layout.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/app/(withAuth)/(dashboardLayout)/layout.js b/src/app/(withAuth)/(dashboardLayout)/layout.js index 54c6ee0..544ff61 100644 --- a/src/app/(withAuth)/(dashboardLayout)/layout.js +++ b/src/app/(withAuth)/(dashboardLayout)/layout.js @@ -5,6 +5,7 @@ import WithWidgetMiddleware from "@/core/middlewares/withWidget"; import { SocketProvider } from "@/lib/contexts/socket"; import { usePermissions } from "@/lib/hooks/usePermissions"; import { Stack } from "@mui/material"; +import { SWRConfig } from "swr"; const Layout = ({ children }) => { const { data: permissions } = usePermissions(); @@ -14,9 +15,11 @@ const Layout = ({ children }) => { return ( - - {children} - + new Map() }}> + + {children} + +