hotwired / turbo-site

turbo.hotwired.dev web site
83 stars 101 forks source link

Correct event.detail properties of `turbo:submit-end` #205

Closed flavio-b closed 2 weeks ago

flavio-b commented 2 weeks ago

Clarified fetchResponse behavior: Now reflects that fetchResponse can be present even when success: false (e.g., for 4xx or 5xx server errors), and it is only undefined when the fetch itself fails.

Updated error property description: Specifies that error is undefined by default and is only set when a fetch error occurs (e.g., network issues)