Masalah Turbolink Data Double

var dataTable = $('.data-table').DataTable();
document.addEventListener("turbolinks:before-cache", function() {
  if (dataTable !== null) {
   dataTable.destroy();
   dataTable = null;
  }
});
yusuf_fazeri