I'm facing an issue with importing a mixin into another file and using the function from it. When I try to do this, I either get undefined or the entire function itself returned. All I really want is to retrieve the value from the function in the other file.
mixin/isSessionActive.js
export default function isSessionActive({ app, store }) {
return 'something'
}
anotherfile.js
import isSessionActive from '~/mixins/isSessionActive'
export default ({ app, env, redirect, store }, inject) => {
....code ....
console.log('isSessionActive', isSessionActive)
})
The console.log above displays:
isSessionActive
function isSessionActive(_ref)
Can someone help me figure out what I'm doing wrong here?