MCPcopy
hub / github.com/hotwired/turbo / visitAction

Function visitAction

src/tests/helpers/page.js:311–321  ·  view source on GitHub ↗
(page)

Source from the content-addressed store, hash-verified

309}
310
311export function visitAction(page) {
312 return page.evaluate(() => {
313 try {
314 const lastVisit = window.visitLogs[window.visitLogs.length - 1]
315
316 return lastVisit.action
317 } catch {
318 return "load"
319 }
320 })
321}
322
323export async function willChangeBody(page, callback) {
324 const handles = []

Callers 8

drive_tests.jsFile · 0.90
rendering_tests.jsFile · 0.90
visit_tests.jsFile · 0.90
root_tests.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…