barba
barba copied to clipboard
Are global `once` hooks available?
Like the title says, are beforeOnce, once, and afterOnce global hooks available?
I think that I managed to solve this, without actually doing nothing special.
The barba.hooks.afterEnter and barba.hooks.beforeEnter are fired also at once, so there is no need for separate global hooks.
Hello @stefanobartoletti,
Sorry for the late reply, but it's a yes! 😄
Note that the
beforeEnterandafterEnterare called at once stage, whilebeforeOnceandafterOnceare only called once, so there is a need to have both.