#Is it possible to use this.$inertia in setup()?
1 messages · Page 1 of 1 (latest)
Yes, that does not work, and won't work. You'll have to use Inertia, as per the docs
setup in Vue has no this context
import { Inertia } from '@inertiajs/inertia'
Inertia.visit()
Ah i see!
Just had to import it
I tried doing it without the import, I knew this. wouldn't work, but I forgot to import it specifically (thought it happened globally) 
Thank you very much Robert!
Haha no worries 🙂 Can be a bit confusing as the docs mostly use the options API