Skip to content

Unable to use defineBasicLoader #432

Closed Answered by axwalker
axwalker asked this question in Q&A
Discussion options

You must be logged in to vote

Aaand 2 minutes later I finally find the solution to my own problem 🤦🏻. For anyone else here, I didn't register the DataLoader plugin, ie:

// main.ts
import { DataLoaderPlugin } from 'unplugin-vue-router/data-loaders';

app.use(DataLoaderPlugin, { router });

I'd skipped over this setup part of the RFC.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@posva
Comment options

Answer selected by axwalker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants