Skip to content
This repository was archived by the owner on Apr 17, 2026. It is now read-only.

Include blobs in the fetcher response.#8

Open
daniel-intellegens wants to merge 1 commit into
mainfrom
support-blobs
Open

Include blobs in the fetcher response.#8
daniel-intellegens wants to merge 1 commit into
mainfrom
support-blobs

Conversation

@daniel-intellegens
Copy link
Copy Markdown

@daniel-intellegens daniel-intellegens commented Mar 1, 2022

DEV-2603
Included the blob data in the fetch response also updated the types.

Comment thread src/fetcher.ts
const response = await fetch(url, init)

const data = await getResponseData(response)
const data = await getResponseData(response.clone())
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this still fetch the non-blob version even if the we subscribe to the blob stream? I don't see a flag to disable the non-blob fetch.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both the blob and JSON response should be included in the response and either could be used.

Copy link
Copy Markdown

@aidan-keay aidan-keay Mar 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we wanted to disable the JSON response since it would crash the frontend (memory overload)?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe @jpcano can confirm, that was my understanding at least.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants