async performSearch () { const utf8decoder = new TextDecoder() this.getMediaMetadataByTags() .then(response => { const stream = new ReadableStream({ start (controller) { const reader = response.body.getReader() read() function read () { reader.read().then(({ done, value }) => { if (done) { controller.close() return null } const textValue = utf8decoder.decode(value) console.log(textValue) // this.items += textValue controller.enqueue(value) read() }) } } }) return new Response(stream, { headers: { 'content-type': 'application/json' } }) }) async getMediaMetadataByTags () { const response = await fetch(`http://localhost:8080/api/v1/media/metadata/?tags=${this.searchTerm}`) return await response.json() }