# Reusable Element内のcustom stateの共有

**URL:** <https://www.nocode-faq.com/t/topic/1798>\
**Category:** bubble\
**Tags:** バックエンドwork\
**Created:** [2021 年 6 月 24 日午後 6:58 UTC](https://www.nocode-faq.com/t/topic/1798 "2021-06-24T18:58:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![quonji](https://avatars.discourse-cdn.com/v4/letter/q/a87d85/32.png) [@quonji](https://www.nocode-faq.com/u/quonji)\
**Post date:** [2021 年 6 月 24 日午後 6:58 UTC](https://www.nocode-faq.com/t/topic/1798/1 "2021-06-24T18:58:37Z")

</div>

例えば、あるページでElement毎にCustom Stateを定義しても、他のElementからそのCustom Stateを読む事は可能です。

一方で、その要素をReusable Elementにして、Reusable Element側でCustom Stateを定義したとします。その場合、Reusable Elementのコピー先であるページの他のElementから、そのReusable Element側のCustom Stateは読めないと思っていますが、考え方としてあっていますでしょうか？

---

<div class="post-metadata">

**Author:** ![NoCodeNinja](https://sea2.discourse-cdn.com/flex020/user_avatar/www.nocode-faq.com/nocodeninja/32/2115_2.png) [@NoCodeNinja](https://www.nocode-faq.com/u/NoCodeNinja)\
**Post date:** [2021 年 6 月 26 日午前 10:01 UTC](https://www.nocode-faq.com/t/topic/1798/2 "2021-06-26T10:01:20Z")

</div>

はい、合っています。  
Reusable Element自体は、基本的に「独立した別ページ」として扱われます。  
設置した場合はそのページの「子ページ」ともならず独立しています。

しかしだからといって、Reusable Element内でCustom Stateを定義することそのものはできても、実行することはできません。もちろん、その中で回して完結させることもできません。  
その辺り少し中途半端でもありますが、仕様としては現在こうなってます。  
基本は上記の通りでご認識くださいませ👀

---

<div class="post-metadata">

**Author:** ![quonji](https://avatars.discourse-cdn.com/v4/letter/q/a87d85/32.png) [@quonji](https://www.nocode-faq.com/u/quonji)\
**Post date:** [2021 年 6 月 30 日午後 3:51 UTC](https://www.nocode-faq.com/t/topic/1798/3 "2021-06-30T15:51:26Z")

</div>

ご回答ありがとうございます。承知しました！
