Turbo.visit(my_url)
performs a normal GET
request, only accepting HTML content. If you want to send a Turbo Stream request to receive a Turbo Stream response, use it as follows:
Turbo.visit(my_url, { acceptsStreamResponse: true })
Feb 14, 2025
Turbo.visit(my_url)
performs a normal GET
request, only accepting HTML content. If you want to send a Turbo Stream request to receive a Turbo Stream response, use it as follows:
Turbo.visit(my_url, { acceptsStreamResponse: true })