File tree 1 file changed +2
-2
lines changed
runtime/fresh/middlewares
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { MiddlewareHandlerContext } from "$fresh/server.ts" ;
2
+ import { tryOrDefault } from "deco/utils/object.ts" ;
2
3
import { DECO_MATCHER_HEADER_QS } from "../../../blocks/matcher.ts" ;
3
4
import { RequestState } from "../../../blocks/utils.tsx" ;
4
5
import { Context } from "../../../deco.ts" ;
@@ -10,7 +11,6 @@ import { DecoSiteState, DecoState } from "../../../types.ts";
10
11
import { isAdminOrLocalhost } from "../../../utils/admin.ts" ;
11
12
import { allowCorsFor , defaultHeaders } from "../../../utils/http.ts" ;
12
13
import { formatLog } from "../../../utils/log.ts" ;
13
- import { tryOrDefault } from "deco/utils/object.ts" ;
14
14
15
15
export const DECO_SEGMENT = "deco_segment" ;
16
16
@@ -128,7 +128,7 @@ export const handler = [
128
128
status : undefined ,
129
129
} ;
130
130
const state : Partial < RequestState > = ctx . state ?. $live ?. state ?? { } ;
131
- const stateBag = new WeakMap ( ) ;
131
+ const stateBag = new Map ( ) ;
132
132
state . response = response ;
133
133
state . bag = stateBag ;
134
134
state . flags = [ ] ;
You can’t perform that action at this time.
0 commit comments