# Best practice when using predicate in Nuxt 3

**URL:** <https://community.prismic.io/t/best-practice-when-using-predicate-in-nuxt-3/11088>\
**Category:** Developing with Prismic\
**Tags:** nuxtjs\
**Created:** [September 13, 2022, 10:17pm UTC](https://community.prismic.io/t/best-practice-when-using-predicate-in-nuxt-3/11088 "2022-09-13T22:17:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jake](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/jake/32/5120_2.png) [@jake](https://community.prismic.io/u/jake)\
**Post date:** [September 13, 2022, 10:17pm UTC](https://community.prismic.io/t/best-practice-when-using-predicate-in-nuxt-3/11088/1 "2022-09-13T22:17:40Z")

</div>

Hello,

As soon as I posted this I realised my mistake 🥴 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. 🦆

Hope this helps someone who maybe having the same drama.

---

<div class="post-metadata">

**Author:** ![Fares](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Fares](https://community.prismic.io/u/Fares)\
**Post date:** [September 14, 2022, 12:32pm UTC](https://community.prismic.io/t/best-practice-when-using-predicate-in-nuxt-3/11088/3 "2022-09-14T12:32:40Z")

</div>

Thanks, @jake, for sharing.
