# previewData in serverSideProps with Context object

**URL:** <https://community.prismic.io/t/previewdata-in-serversideprops-with-context-object/12346>\
**Category:** Developing with Prismic\
**Tags:** nextjs\
**Created:** [February 3, 2023, 8:50pm UTC](https://community.prismic.io/t/previewdata-in-serversideprops-with-context-object/12346 "2023-02-03T20:50:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![devops\_support](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@devops\_support](https://community.prismic.io/u/devops_support)\
**Post date:** [February 3, 2023, 8:50pm UTC](https://community.prismic.io/t/previewdata-in-serversideprops-with-context-object/12346/1 "2023-02-03T20:50:20Z")

</div>

Hi team, I want to know if the previewData should always be called as destructuring prop? In other words, by using previewData we lose the use of the context in serversideProps?

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [February 6, 2023, 3:14pm UTC](https://community.prismic.io/t/previewdata-in-serversideprops-with-context-object/12346/3 "2023-02-06T15:14:08Z")

</div>

Split this topic on February 6, 2023, 3:14pm UTC

A post was merged into an existing topic: [Prismic & MongoDb - Your `getServerSideProps` function did not return an object](https://community.prismic.io/t/prismic-mongodb-your-getserversideprops-function-did-not-return-an-object/11905)
