Skip to content

Commit

Permalink
just keep logging
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Oct 19, 2023
1 parent 300f36a commit 4f58bd6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/houdini-react/src/runtime/routing/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,14 @@ function usePageData({

// the function that loads all of the data for a page using the caches
function loadData(targetPage: RouterPageManifest<ComponentType>, variables: {} | null) {
console.log('loading page', targetPage)
// if any of the artifacts that this page on have new variables, we need to clear the data cache
for (const artifact of Object.keys(targetPage.documents)) {
if (
last_variables.has(artifact) &&
!deepEquals(last_variables.get(artifact), variables)
) {
console.log('clearing cache for', artifact)
data_cache.delete(artifact)
}
}
Expand Down Expand Up @@ -336,6 +338,8 @@ function usePageData({
console.log('skipping over', artifact.name)
}
}

console.log('data cache', data_cache)
}

// if we don't have the component then we need to load it, save it in the cache, and
Expand Down

0 comments on commit 4f58bd6

Please sign in to comment.