Start your All-Access Pass to unlock this challenge
Which of these statements is false about the turbo:before-fetch-response and turbo:submit-end events?
turbo:before-fetch-response
turbo:submit-end
The turbo:before-fetch-response event is fired from the <turbo-frame> or <form> element that originated the request; like the turbo:submit-end event, which is fired from the <form> element that originated it.
<turbo-frame>
<form>
The turbo:before-fetch-response event allows us to cancel the event, while turbo:submit-end doesn't.
The turbo:before-fetch-response event doesn't contain any extra information in the event.detail property (such as success) while turbo:submit-end does contain it.
event.detail
success