Best practice when using predicate in Nuxt 3

Hello,

As soon as I posted this I realised my mistake :woozy_face: that predicate is available from usePrismic. I originally tried const { client, predicates } = ... which didn't work.

'predicates' is deprecated and is now 'predicate'.

Use like so: const { client, predicate } = usePrismic()

Rubber duck moment. :duck:

Hope this helps someone who maybe having the same drama.

1 Like

Thanks, @jake, for sharing.