Question regarding BarbaJS and Sage Roots

Hi,

I need some clarification to understand how BarbaJS should work with Sage Roots.
In the main.js the BarbaJS is loading properly and even the prefetch is working as expected with one route and a common file.

const routes = new Router({
    common,
    home,
});

// Load Events
jQuery(document).ready(() => {
    routes.loadEvents();
    barbaInit(routes);
});

The home.js

export default {
  init() {
    let home = Barba.BaseView.extend({// eslint-disable-line
          namespace: 'home',
          onEnter: function() {
              // the code that it's expected to run
          }
  }
}

Everytime i enter the home page the init function in home.js is invoked. Shouldn’t this function only be invoked when the BarbaJS bootstrap?

The code inside onEnter isn’t invoked.

Thanks