@@ -56,16 +56,16 @@ async function rsaFetch(
5656}
5757
5858function rscFetch ( serializedLocation : string ) {
59- const rscId = '__rwjs__Routes '
59+ const rscId = '__cedarjs__Routes '
6060
6161 return fetch ( BASE_PATH + rscId + '?' + serializedLocation , {
6262 headers : { 'rw-rsc' : '1' } ,
6363 } )
6464}
6565
6666type SerializedLocation =
67- | `__rwjs__pathname =${string } &__rwjs__search =${string } `
68- | `__rwjs__pathname =${string } &__rwjs__search =${string } ::${string } `
67+ | `__cedarjs__pathname =${string } &__cedarjs__search =${string } `
68+ | `__cedarjs__pathname =${string } &__cedarjs__search =${string } ::${string } `
6969
7070function rscFetchRoutes ( serializedLocation : SerializedLocation ) {
7171 console . log (
@@ -114,7 +114,7 @@ function rscFetchRoutes(serializedLocation: SerializedLocation) {
114114
115115 const model = await modelPromise
116116
117- return model . __rwjs__rsa_data
117+ return model . __cedarjs__rsa_data
118118 } ,
119119 }
120120
@@ -133,7 +133,7 @@ interface Props {
133133}
134134
135135export const RscRoutes = ( { pathname, search } : Props ) => {
136- const serializedLocation : SerializedLocation = `__rwjs__pathname =${ pathname } &__rwjs__search =${ search } `
136+ const serializedLocation : SerializedLocation = `__cedarjs__pathname =${ pathname } &__cedarjs__search =${ search } `
137137 const [ currentRscCacheKey , setCurrentRscCacheKey ] = useState ( ( ) => {
138138 console . log ( 'RscRoutes :: useState initial value' )
139139 // Calling rscFetchRoutes here to prime the cache
@@ -165,5 +165,5 @@ export const RscRoutes = ({ pathname, search }: Props) => {
165165 throw new Error ( 'Missing RSC cache entry for ' + currentRscCacheKey )
166166 }
167167
168- return use ( rscModelPromise ) . __rwjs__Routes [ 0 ]
168+ return use ( rscModelPromise ) . __cedarjs__Routes [ 0 ]
169169}
0 commit comments