Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Function enableNavigation

    • Answers same-origin link clicks, GET form submits and history moves to held routes from the page, with no request. Anything the held rows cannot answer goes to the browser as it would have. Dispatches spool:navigated on window after each local swap. Resolves ready once the routes are loaded; until then nothing is intercepted. go moves to url as a click would, and loads it as a document when the held rows cannot answer.

      Parameters

      Returns { ready: Promise<void>; go(url: URL): void; stop(): void }