Don't try to render fetched response
Because it's a turbo stream response, it will be rendered automatically.
This commit is contained in:
@@ -19,10 +19,7 @@ export default class extends Controller {
|
||||
observer.observe(this.element)
|
||||
}
|
||||
|
||||
async #fetch() {
|
||||
const resp = await get(this.urlValue, { responseKind: "turbo-stream" })
|
||||
const html = await resp.html
|
||||
|
||||
Turbo.renderStreamMessage(html)
|
||||
#fetch() {
|
||||
get(this.urlValue, { responseKind: "turbo-stream" })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user