Skip to content

Commit 4d71ace

Browse files
authored
Merge pull request #233 from radanskoric/turbo-reload-event
Add documentation for turbo:reload message
2 parents 17e5033 + 04a6588 commit 4d71ace

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

_source/reference/events.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ Fires once after the initial page load, and again after every Turbo visit.
9898
| `timing.requestEnd` | `number` | timestamp at the end of the HTTP request for the next page
9999
| `timing.visitEnd` | `number` | timestamp at the end of the Visit
100100

101+
### `turbo:reload`
102+
103+
Fires just before Turbo performs a full page reload.
104+
105+
| `event.detail` property | Type | Description
106+
|---------------------------|-----------|------------
107+
| `reason` | `string` | the reason for the reload (e.g. "turbo_disabled", "turbo_visit_control_is_reload", "tracked_element_mismatch", "request_failed")
108+
101109

102110
## Page Refreshes
103111

0 commit comments

Comments
 (0)