Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Apr 2, 2024
1 parent ccd3c95 commit f04e4ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/houdini-react/src/runtime/routing/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,15 @@ function usePageData({
resolve = res
reject = rej

console.log('sending query', observer.artifact.name, variables)

observer
.send({
variables: variables,
session,
})
.then(async () => {
console.log('query resolved', observer.artifact.name, observer.state)
data_cache.set(id, observer)

// if there is an error, we need to reject the promise
Expand Down

0 comments on commit f04e4ee

Please sign in to comment.