Skip to content

Commit

Permalink
use variables after send when hydrating
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Mar 8, 2024
1 parent b17fd93 commit 36bbeaa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/houdini-react/src/runtime/routing/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,11 @@ function usePageData({
}
}
console.log('assigning pending data', artifactName, value, ${JSON.stringify(variables)})
console.log('assigning pending data', artifactName, value, ${JSON.stringify(
observer.state.variables
)})
window.__houdini__pending_variables__[artifactName] = ${JSON.stringify(variables)}
window.__houdini__pending_variables__[artifactName] = ${JSON.stringify(observer.state.variables)}
window.__houdini__pending_data__[artifactName] = value
window.__houdini__pending_artifacts__[artifactName] = ${JSON.stringify(artifact)}
Expand Down

0 comments on commit 36bbeaa

Please sign in to comment.