Turbolinks

與 Turbolinks 一起使用

import Turbolinks from 'turbolinks'

const { beyond } = window

Turbolinks.start()

document.addEventListener('turbolinks:before-cache', () => beyond.unbindAll())
document.addEventListener('turbolinks:load', () => beyond.bind())

beyond.docReady()
  .then(() => beyond.bind())