diff --git a/packages/houdini-react/src/plugin/codegen/render.ts b/packages/houdini-react/src/plugin/codegen/render.ts index b1ca26560a..8888d1271c 100644 --- a/packages/houdini-react/src/plugin/codegen/render.ts +++ b/packages/houdini-react/src/plugin/codegen/render.ts @@ -70,8 +70,6 @@ export const on_render = return new Response('not found', { status: 404 }) } - try { - const { readable, injectToStream, @@ -114,10 +112,6 @@ export const on_render = } else { return new Response(readable) } - } catch (err) { - console.error(err) - return new Response('internal server error', { status: 500 }) - } } export function createServerAdapter(options) { diff --git a/packages/houdini-react/src/runtime/routing/Router.tsx b/packages/houdini-react/src/runtime/routing/Router.tsx index 7956eafe85..0ab117b7ff 100644 --- a/packages/houdini-react/src/runtime/routing/Router.tsx +++ b/packages/houdini-react/src/runtime/routing/Router.tsx @@ -314,6 +314,7 @@ function usePageData({ // to use loading any missing artifacts or the page component. // group the necessary based on wether we have their artifact or not + console.log('documents', targetPage.documents) const missing_artifacts: string[] = [] const found_artifacts: Record = {} for (const key of Object.keys(targetPage.documents)) { @@ -356,6 +357,8 @@ function usePageData({ // if we don't have the query, load it if (!data_cache.has(artifact.name)) { load_query({ id: artifact.name, artifact }) + } else { + console.log('skipping', artifact.name) } } } @@ -519,10 +522,12 @@ const VariableContext = React.createContext(null) export function useQueryResult<_Data extends GraphQLObject, _Input extends GraphQLVariables>( name: string ): [_Data | null, DocumentStore<_Data, _Input>] { + console.log('useQueryResult', name) const store_ref = useRouterContext().data_cache.get(name)! as unknown as DocumentStore< _Data, _Input > + console.log('storeRef', store_ref) // get the live data from the store const [{ data }, observer] = useDocumentStore<_Data, _Input>({ artifact: store_ref.artifact,