Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Oct 19, 2023
1 parent eafbcc9 commit cb5632a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/houdini-react/src/runtime/routing/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function usePageData({

// if there is a pending request and we were asked to load, don't do anything
if (ssr_signals.has(id)) {
console.log('using ssr signal')
console.log('using ssr signal', id)
return ssr_signals.get(id)!
}

Expand Down Expand Up @@ -254,6 +254,8 @@ function usePageData({
})
}
console.log('clearing ssr signal', artifactName)
// trigger the signal
window.__houdini__nav_caches__.ssr_signals.get(artifactName).resolve()
window.__houdini__nav_caches__.ssr_signals.delete(artifactName)
Expand All @@ -271,6 +273,7 @@ function usePageData({
// communicate with the client when we're done
const resolvable = { ...promise, resolve, reject }
if (!globalThis.window) {
console.log('setting ssr signal')
ssr_signals.set(id, resolvable)
}

Expand Down

0 comments on commit cb5632a

Please sign in to comment.