<?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 Re: The right way coding in Vue 3 compositive API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-right-way-coding-in-vue-3-compositive-api/m-p/1187263#M77790</link>
    <description>&lt;P&gt;I prefer to isolate references to the JSAPI in the store or utility modules, but components not to import things like the Map or MapView directly.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2022 13:36:51 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2022-06-28T13:36:51Z</dc:date>
    <item>
      <title>The right way coding in Vue 3 compositive API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-right-way-coding-in-vue-3-compositive-api/m-p/1186608#M77771</link>
      <description>&lt;P&gt;To share the Map or MapView object through the application, what's the right way in Vue 3 dev environment?&lt;/P&gt;&lt;P data-unlink="true"&gt;To use "Provide/Inject" or "Vuex" state management ?&amp;nbsp; &amp;nbsp;In &lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript-questions/js-api-vue-watch-for-data-store-changes/m-p/402026?attachment-id=28112" target="_self"&gt;this thread&lt;/A&gt;&amp;nbsp; it seems the Js SDK not support proxy so the Map objects are not reactive.&amp;nbsp; &amp;nbsp;What about the current version of SDK?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 06:40:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-right-way-coding-in-vue-3-compositive-api/m-p/1186608#M77771</guid>
      <dc:creator>baohuachu7</dc:creator>
      <dc:date>2022-06-27T06:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: The right way coding in Vue 3 compositive API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-right-way-coding-in-vue-3-compositive-api/m-p/1186823#M77780</link>
      <description>&lt;P&gt;I don't want to dictate it as the right way, but this is an example of how I manage ArcGIS JSAPI in Vue.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/odoe/nearby-app/blob/main/src/store.ts" target="_blank"&gt;https://github.com/odoe/nearby-app/blob/main/src/store.ts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can also use shallowRef in components for stuff if you like. This will just wrap the instance in a Proxy and not all of it's props&lt;/P&gt;&lt;P&gt;&lt;A href="https://vuejs.org/api/reactivity-advanced.html#shallowref" target="_blank"&gt;https://vuejs.org/api/reactivity-advanced.html#shallowref&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I very much recommend that ArcGIS JSAPI not be referenced directly in components, but again, that is just my opinion.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 15:54:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-right-way-coding-in-vue-3-compositive-api/m-p/1186823#M77780</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-06-27T15:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: The right way coding in Vue 3 compositive API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-right-way-coding-in-vue-3-compositive-api/m-p/1187134#M77788</link>
      <description>&lt;P&gt;Hi Rene:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;What do you mean :&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;ArcGIS JSAPI not be referenced directly in components&amp;nbsp; ?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If not use the reactive features for&amp;nbsp; ArcGIS JSAPI , only those on Vue side use reactive, and use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="Accessor Watch Method" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Accessor.html#watch" target="_blank" rel="nofollow noopener noreferrer"&gt;Accessor watch method&lt;/A&gt;&lt;SPAN&gt;, or&amp;nbsp;&lt;/SPAN&gt;&lt;A title="watchUtils" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html" target="_blank" rel="nofollow noopener noreferrer"&gt;watchUtils&amp;nbsp;&lt;/A&gt;&amp;nbsp; &amp;nbsp; to handle Map or MapView changes.&amp;nbsp; Is this way OK?&amp;nbsp; (as discussed &lt;A href="http://%20https://community.esri.com/t5/arcgis-api-for-javascript-questions/arcgis-js-api-4-x-not-supported-with-vuejs-3-0/td-p/120227/page/2" target="_self"&gt;in this thread&lt;/A&gt;)&amp;nbsp; .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 03:13:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-right-way-coding-in-vue-3-compositive-api/m-p/1187134#M77788</guid>
      <dc:creator>baohuachu7</dc:creator>
      <dc:date>2022-06-28T03:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: The right way coding in Vue 3 compositive API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-right-way-coding-in-vue-3-compositive-api/m-p/1187263#M77790</link>
      <description>&lt;P&gt;I prefer to isolate references to the JSAPI in the store or utility modules, but components not to import things like the Map or MapView directly.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 13:36:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-right-way-coding-in-vue-3-compositive-api/m-p/1187263#M77790</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-06-28T13:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: The right way coding in Vue 3 compositive API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-right-way-coding-in-vue-3-compositive-api/m-p/1187618#M77800</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Rene,&lt;/P&gt;&lt;P&gt;Thank you for your help.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 01:30:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-right-way-coding-in-vue-3-compositive-api/m-p/1187618#M77800</guid>
      <dc:creator>baohuachu2</dc:creator>
      <dc:date>2022-06-29T01:30:26Z</dc:date>
    </item>
  </channel>
</rss>

