From 3d95dd78f3814a36908c796c03b24d9d3536c3cc Mon Sep 17 00:00:00 2001 From: wang Date: Fri, 28 Jul 2023 02:00:15 +0900 Subject: [PATCH] Unnecessary serialization on `cache.restore` --- src/runtime/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/plugin.ts b/src/runtime/plugin.ts index 269241ab..96d54d1d 100644 --- a/src/runtime/plugin.ts +++ b/src/runtime/plugin.ts @@ -130,7 +130,7 @@ export default defineNuxtPlugin((nuxtApp) => { }) if (process.client && nuxtApp.payload.data[cacheKey]) { - cache.restore(destr(JSON.stringify(nuxtApp.payload.data[cacheKey]))) + cache.restore(nuxtApp.payload.data[cacheKey]) } }