@@ -140,7 +140,7 @@ export type ClientStateMap = WeakMap<ws, ClientState>
140140// is no client to receive updates and no unsubscribe path.
141141type HandleRouteTypeHooks = {
142142 handleWrittenEndpoint : HandleWrittenEndpoint
143- subscribeToChanges ? : StartChangeSubscription
143+ subscribeToChanges : StartChangeSubscription
144144}
145145
146146export async function handleRouteType ( {
@@ -258,7 +258,7 @@ export async function handleRouteType({
258258 if ( dev ) {
259259 // TODO subscriptions should only be caused by the WebSocket connections
260260 // otherwise we don't known when to unsubscribe and this leaking
261- hooks ?. subscribeToChanges ?. (
261+ hooks ?. subscribeToChanges (
262262 serverKey ,
263263 false ,
264264 route . dataEndpoint ,
@@ -277,7 +277,7 @@ export async function handleRouteType({
277277 }
278278 }
279279 )
280- hooks ?. subscribeToChanges ?. (
280+ hooks ?. subscribeToChanges (
281281 clientKey ,
282282 false ,
283283 route . htmlEndpoint ,
@@ -294,7 +294,7 @@ export async function handleRouteType({
294294 }
295295 )
296296 if ( entrypoints . global . document ) {
297- hooks ?. subscribeToChanges ?. (
297+ hooks ?. subscribeToChanges (
298298 getEntryKey ( 'pages' , 'server' , '_document' ) ,
299299 false ,
300300 entrypoints . global . document ,
@@ -352,7 +352,7 @@ export async function handleRouteType({
352352 if ( dev ) {
353353 // TODO subscriptions should only be caused by the WebSocket connections
354354 // otherwise we don't known when to unsubscribe and this leaking
355- hooks ?. subscribeToChanges ?. (
355+ hooks ?. subscribeToChanges (
356356 key ,
357357 true ,
358358 route . rscEndpoint ,
@@ -874,7 +874,7 @@ export async function handlePagesErrorRoute({
874874
875875 const writtenEndpoint = await entrypoints . global . app . writeToDisk ( )
876876 hooks . handleWrittenEndpoint ( key , writtenEndpoint , false )
877- hooks . subscribeToChanges ?. (
877+ hooks . subscribeToChanges (
878878 key ,
879879 false ,
880880 entrypoints . global . app ,
@@ -903,7 +903,7 @@ export async function handlePagesErrorRoute({
903903
904904 const writtenEndpoint = await entrypoints . global . document . writeToDisk ( )
905905 hooks . handleWrittenEndpoint ( key , writtenEndpoint , false )
906- hooks . subscribeToChanges ?. (
906+ hooks . subscribeToChanges (
907907 key ,
908908 false ,
909909 entrypoints . global . document ,
@@ -929,7 +929,7 @@ export async function handlePagesErrorRoute({
929929
930930 const writtenEndpoint = await entrypoints . global . error . writeToDisk ( )
931931 hooks . handleWrittenEndpoint ( key , writtenEndpoint , false )
932- hooks . subscribeToChanges ?. (
932+ hooks . subscribeToChanges (
933933 key ,
934934 false ,
935935 entrypoints . global . error ,
0 commit comments