File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
defaults/app/route-templates
react-router/app/route-templates Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ import { sitemap } from "__SITEMAP__";
4444
4545const customFetch : typeof fetch = ( input , init ) => {
4646 if ( typeof input !== "string" ) {
47- return cachedFetch ( input , init , projectId ) ;
47+ return cachedFetch ( projectId , input , init ) ;
4848 }
4949
5050 if ( isLocalResource ( input , "sitemap.xml" ) ) {
@@ -54,7 +54,7 @@ const customFetch: typeof fetch = (input, init) => {
5454 return Promise . resolve ( response ) ;
5555 }
5656
57- return cachedFetch ( input , init , projectId ) ;
57+ return cachedFetch ( projectId , input , init ) ;
5858} ;
5959
6060export const loader = async ( arg : LoaderFunctionArgs ) => {
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ import { sitemap } from "__SITEMAP__";
4343
4444const customFetch : typeof fetch = ( input , init ) => {
4545 if ( typeof input !== "string" ) {
46- return cachedFetch ( input , init , projectId ) ;
46+ return cachedFetch ( projectId , input , init ) ;
4747 }
4848
4949 if ( isLocalResource ( input , "sitemap.xml" ) ) {
@@ -53,7 +53,7 @@ const customFetch: typeof fetch = (input, init) => {
5353 return Promise . resolve ( response ) ;
5454 }
5555
56- return cachedFetch ( input , init , projectId ) ;
56+ return cachedFetch ( projectId , input , init ) ;
5757} ;
5858
5959export const loader = async ( arg : LoaderFunctionArgs ) => {
Original file line number Diff line number Diff line change @@ -108,9 +108,9 @@ const getCacheKey = async (request: Request) => {
108108} ;
109109
110110export const cachedFetch = async (
111+ namespace : string ,
111112 input : RequestInfo | URL ,
112- init : RequestInit ,
113- namespace : string
113+ init ?: RequestInit
114114) => {
115115 if ( globalThis . caches ) {
116116 const request = new Request ( input , init ) ;
You can’t perform that action at this time.
0 commit comments