Skip to content

Commit

Permalink
just keep going
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Oct 19, 2023
1 parent 4beea32 commit 095d7be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/houdini-react/src/runtime/routing/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -498,12 +498,13 @@ const VariableContext = React.createContext<GraphQLVariables>(null)
export function useQueryResult<_Data extends GraphQLObject, _Input extends GraphQLVariables>(
name: string
): [_Data | null, DocumentStore<_Data, _Input>] {
console.log('grabbing query result')
console.log('grabbing query result', name)
const store_ref = useRouterContext().data_cache.get(name)! as unknown as DocumentStore<
_Data,
_Input
>

console.log(name, 'store ref', store_ref)
// get the live data from the store
const [{ data }, observer] = useDocumentStore<_Data, _Input>({
artifact: store_ref.artifact,
Expand Down

0 comments on commit 095d7be

Please sign in to comment.