# \[Meeting SDK\] Reducer error for SET\_SHARE\_PRIVILEGE for certain versions

**URL:** <https://devforum.zoom.us/t/meeting-sdk-reducer-error-for-set-share-privilege-for-certain-versions/92403>\
**Category:** Web\
**Created:** [July 26, 2023, 2:41am UTC](https://devforum.zoom.us/t/meeting-sdk-reducer-error-for-set-share-privilege-for-certain-versions/92403 "2023-07-26T02:41:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elaine](https://avatars.discourse-cdn.com/v4/letter/e/439d5e/32.png) [@elaine](https://devforum.zoom.us/u/elaine)\
**Post date:** [July 26, 2023, 2:41am UTC](https://devforum.zoom.us/t/meeting-sdk-reducer-error-for-set-share-privilege-for-certain-versions/92403/1 "2023-07-26T02:41:44Z")

</div>

**Description**

Hi, my team is integrating @zoomus/websdk into our react app. We have been using v2.9.5 for a while now and it’s been fine. Recently, we see a need for destroyClient() method so we updated to v2.11.0. However, this causes our react app to not be able to work. Upon inspecting the browser, this is the error message that we’ve gotten:

`Uncaught Invariant Violation: defaultState for reducer handling SET_SHARE_PRIVILEGE should be defined`

We experimented with upgrading / downgrading of versions and we faced the same issue with all versions after 2.11.0. Eventually, we settled on v2.9.7 where destroyClient() was first introduced.

I read up on the documentation and found a method setSharePrivilege() from the Stream interface but I am not sure where / in what situation do we use this method. I also tried searching on the forum for SET\_SHARE\_PRIVILEGE but could not find any helpful information about it.

As my team do foresee ourselves upgrading to a newer version in the future, we would like to check if there is anyone who have encountered similar issue? Are there also any information as to where SET\_SHARE\_PRIVILEGE might originate from?

Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 25, 2023, 12:42pm UTC](https://devforum.zoom.us/t/meeting-sdk-reducer-error-for-set-share-privilege-for-certain-versions/92403/2 "2023-08-25T12:42:04Z")

</div>

Closed on August 25, 2023, 12:42pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
