Skip to content

Commit

Permalink
rm render options values from cache
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Apr 4, 2024
1 parent 1592ebf commit 3261834
Showing 1 changed file with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ export const RequestAsyncStorageWrapper: AsyncStorageWrapper<
cookies?: ReadonlyRequestCookies
mutableCookies?: ResponseCookies
draftMode?: DraftModeProvider
assetPrefix?: string
reactLoadableManifest?: Record<string, { files: string[] }>
} = {}

const store: RequestStore = {
Expand Down Expand Up @@ -132,18 +130,8 @@ export const RequestAsyncStorageWrapper: AsyncStorageWrapper<

return cache.draftMode
},
get reactLoadableManifest() {
if (!cache.reactLoadableManifest) {
cache.reactLoadableManifest = renderOpts?.reactLoadableManifest || {}
}
return cache.reactLoadableManifest
},
get assetPrefix() {
if (!cache.assetPrefix) {
cache.assetPrefix = renderOpts?.assetPrefix || ''
}
return cache.assetPrefix
},
reactLoadableManifest: renderOpts?.reactLoadableManifest || {},
assetPrefix: renderOpts?.assetPrefix || '',
}

return storage.run(store, callback, store)
Expand Down

0 comments on commit 3261834

Please sign in to comment.