<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Sharing Data Between Components in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/sharing-data-between-components/m-p/1486561#M7076</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I'd like to have multiple instances of a class (A) communicating directly to the SAME instance of another class (B) in my Widget, perhaps in a singleton manner.&lt;/P&gt;&lt;P&gt;I'd ultimately like to have one loop running in that singleton class (B), which could be started and stopped by any instance of (A). I was able to link both classes, but each instance of (A) creates IT'S OWN instance of (B), which is the opposite of what I'd like.&lt;/P&gt;&lt;P&gt;Is there any way to handle this in React?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any input in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2024 20:07:30 GMT</pubDate>
    <dc:creator>Glyphmo</dc:creator>
    <dc:date>2024-06-06T20:07:30Z</dc:date>
    <item>
      <title>Sharing Data Between Components</title>
      <link>https://community.esri.com/t5/developers-questions/sharing-data-between-components/m-p/1486561#M7076</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I'd like to have multiple instances of a class (A) communicating directly to the SAME instance of another class (B) in my Widget, perhaps in a singleton manner.&lt;/P&gt;&lt;P&gt;I'd ultimately like to have one loop running in that singleton class (B), which could be started and stopped by any instance of (A). I was able to link both classes, but each instance of (A) creates IT'S OWN instance of (B), which is the opposite of what I'd like.&lt;/P&gt;&lt;P&gt;Is there any way to handle this in React?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any input in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 20:07:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/sharing-data-between-components/m-p/1486561#M7076</guid>
      <dc:creator>Glyphmo</dc:creator>
      <dc:date>2024-06-06T20:07:30Z</dc:date>
    </item>
  </channel>
</rss>

