Skip to content

Commit

Permalink
more logs for ssr signals
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Oct 19, 2023
1 parent cb5632a commit 21c0714
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/houdini-react/src/runtime/routing/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function usePageData({
// if we are on the server, we need to save a signal that we can use to
// communicate with the client when we're done
const resolvable = { ...promise, resolve, reject }
if (!globalThis.window) {
if (!globalThis.window && artifact.enableLoadingState) {
console.log('setting ssr signal')
ssr_signals.set(id, resolvable)
}
Expand Down Expand Up @@ -691,6 +691,8 @@ export function router_cache({
last_variables: suspense_cache(),
}

console.log({ pending_queries })

// we need to fill each query with an externally resolvable promise
for (const query of pending_queries) {
result.ssr_signals.set(query, signal_promise())
Expand Down

0 comments on commit 21c0714

Please sign in to comment.