@@ -139,7 +139,7 @@ export type ClientStateMap = WeakMap<ws, ClientState>
139139// is no client to receive updates and no unsubscribe path.
140140type HandleRouteTypeHooks = {
141141 handleWrittenEndpoint : HandleWrittenEndpoint
142- subscribeToChanges ? : StartChangeSubscription
142+ subscribeToChanges : StartChangeSubscription
143143}
144144
145145export async function handleRouteType ( {
@@ -256,7 +256,7 @@ export async function handleRouteType({
256256 if ( dev ) {
257257 // TODO subscriptions should only be caused by the WebSocket connections
258258 // otherwise we don't known when to unsubscribe and this leaking
259- hooks ?. subscribeToChanges ?. (
259+ hooks ?. subscribeToChanges (
260260 serverKey ,
261261 false ,
262262 route . dataEndpoint ,
@@ -275,7 +275,7 @@ export async function handleRouteType({
275275 }
276276 }
277277 )
278- hooks ?. subscribeToChanges ?. (
278+ hooks ?. subscribeToChanges (
279279 clientKey ,
280280 false ,
281281 route . htmlEndpoint ,
@@ -292,7 +292,7 @@ export async function handleRouteType({
292292 }
293293 )
294294 if ( entrypoints . global . document ) {
295- hooks ?. subscribeToChanges ?. (
295+ hooks ?. subscribeToChanges (
296296 getEntryKey ( 'pages' , 'server' , '_document' ) ,
297297 false ,
298298 entrypoints . global . document ,
@@ -349,7 +349,7 @@ export async function handleRouteType({
349349 if ( dev ) {
350350 // TODO subscriptions should only be caused by the WebSocket connections
351351 // otherwise we don't known when to unsubscribe and this leaking
352- hooks ?. subscribeToChanges ?. (
352+ hooks ?. subscribeToChanges (
353353 key ,
354354 true ,
355355 route . rscEndpoint ,
@@ -869,7 +869,7 @@ export async function handlePagesErrorRoute({
869869
870870 const writtenEndpoint = await entrypoints . global . app . writeToDisk ( )
871871 hooks . handleWrittenEndpoint ( key , writtenEndpoint , false )
872- hooks . subscribeToChanges ?. (
872+ hooks . subscribeToChanges (
873873 key ,
874874 false ,
875875 entrypoints . global . app ,
@@ -898,7 +898,7 @@ export async function handlePagesErrorRoute({
898898
899899 const writtenEndpoint = await entrypoints . global . document . writeToDisk ( )
900900 hooks . handleWrittenEndpoint ( key , writtenEndpoint , false )
901- hooks . subscribeToChanges ?. (
901+ hooks . subscribeToChanges (
902902 key ,
903903 false ,
904904 entrypoints . global . document ,
@@ -924,7 +924,7 @@ export async function handlePagesErrorRoute({
924924
925925 const writtenEndpoint = await entrypoints . global . error . writeToDisk ( )
926926 hooks . handleWrittenEndpoint ( key , writtenEndpoint , false )
927- hooks . subscribeToChanges ?. (
927+ hooks . subscribeToChanges (
928928 key ,
929929 false ,
930930 entrypoints . global . error ,
0 commit comments