File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
turbo/src/main/kotlin/dev/hotwire/turbo Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,7 @@ internal class TurboWebFragmentDelegate(
191
191
}
192
192
193
193
override fun visitRendered () {
194
+ callback.onVisitRendered(location)
194
195
navDestination.fragmentViewModel.setTitle(title())
195
196
removeTransitionalViews()
196
197
}
Original file line number Diff line number Diff line change @@ -56,6 +56,13 @@ interface TurboWebFragmentCallback {
56
56
*/
57
57
fun onVisitStarted (location : String ) {}
58
58
59
+ /* *
60
+ * Called when a Turbo visit has rendered (from a cached snapshot or
61
+ * from a fresh network request). This may be called multiple times
62
+ * during a normal visit lifecycle.
63
+ */
64
+ fun onVisitRendered (location : String ) {}
65
+
59
66
/* *
60
67
* Called when a Turbo visit has completed.
61
68
*/
You can’t perform that action at this time.
0 commit comments