# Read session props changes in the Perspective

**URL:** <https://forum.inductiveautomation.com/t/read-session-props-changes-in-the-perspective/110385>\
**Category:** Module Development\
**Tags:** perspective\
**Created:** [September 4, 2025, 5:01pm UTC](https://forum.inductiveautomation.com/t/read-session-props-changes-in-the-perspective/110385 "2025-09-04T17:01:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mehrdad\_Telli](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mehrdad_telli/32/77763_2.png) [@Mehrdad\_Telli](https://forum.inductiveautomation.com/u/Mehrdad_Telli)\
**Post date:** [September 4, 2025, 5:01pm UTC](https://forum.inductiveautomation.com/t/read-session-props-changes-in-the-perspective/110385/1 "2025-09-04T17:01:06Z")

</div>

How do I read session props in the perspective module? I need to check and use theme changes.

---

<div class="post-metadata">

**Author:** ![Mehrdad\_Telli](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mehrdad_telli/32/77763_2.png) [@Mehrdad\_Telli](https://forum.inductiveautomation.com/u/Mehrdad_Telli)\
**Post date:** [September 4, 2025, 5:56pm UTC](https://forum.inductiveautomation.com/t/read-session-props-changes-in-the-perspective/110385/3 "2025-09-04T17:56:30Z")

</div>

I mean reading Session props from the react section in developing the perspective module.

---

<div class="post-metadata">

**Author:** ![Cose\_Peter1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cose_peter1/32/79174_2.png) [@Cose\_Peter1](https://forum.inductiveautomation.com/u/Cose_Peter1)\
**Post date:** [September 4, 2025, 6:04pm UTC](https://forum.inductiveautomation.com/t/read-session-props-changes-in-the-perspective/110385/4 "2025-09-04T18:04:53Z")

</div>

Ohh sorry, you had module development tagged on the post as well.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 4, 2025, 6:50pm UTC](https://forum.inductiveautomation.com/t/read-session-props-changes-in-the-perspective/110385/5 "2025-09-04T18:50:24Z")

</div>

> [@Perspective Component Detect Theme Change](https://forum.inductiveautomation.com/t/perspective-component-detect-theme-change/107242/5):
>
> You should be accessing the session properties from the tree attached to the PageStore: props.store.clientStore?.page?.sessionProps?.subscribe((tree) =\> console.log(tree.read('theme')) )

Note my earlier caveat in that post - you might just want to react to the theme via CSS, not attempt to read it from JS, but 🤷

---

<div class="post-metadata">

**Author:** ![Mehrdad\_Telli](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mehrdad_telli/32/77763_2.png) [@Mehrdad\_Telli](https://forum.inductiveautomation.com/u/Mehrdad_Telli)\
**Post date:** [September 4, 2025, 7:14pm UTC](https://forum.inductiveautomation.com/t/read-session-props-changes-in-the-perspective/110385/6 "2025-09-04T19:14:14Z")

</div>

I tested this code but it didn't work for me, I have no idea how to read css changes, or how to define a listener for these css changes.
