<?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: MapView whenOnce is loaded in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapview-whenonce-is-loaded/m-p/1245115#M79764</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/193359"&gt;@GregoryBologna&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You could use the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#when" target="_self"&gt;when method&lt;/A&gt; on the MapView or watch the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#ready" target="_self"&gt;ready property&lt;/A&gt; on the MapView with the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html#whenOnce" target="_self"&gt;whenOnce method&lt;/A&gt; from reactiveUtils. The following codepen shows both ways:&amp;nbsp;&lt;A href="https://codepen.io/laurenb14/pen/MWBjaWZ?editors=1000" target="_blank"&gt;https://codepen.io/laurenb14/pen/MWBjaWZ?editors=1000&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2023 21:04:34 GMT</pubDate>
    <dc:creator>LaurenBoyd</dc:creator>
    <dc:date>2023-01-03T21:04:34Z</dc:date>
    <item>
      <title>MapView whenOnce is loaded</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapview-whenonce-is-loaded/m-p/1243375#M79709</link>
      <description>&lt;P&gt;How do I &lt;SPAN class=""&gt;whenOnce&lt;/SPAN&gt;&amp;nbsp;when a MapView is loaded, including any buttons added to ui?&lt;/P&gt;&lt;P&gt;Please include link to referenced api. Thanks.&lt;/P&gt;&lt;P&gt;This doesn't work.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;reactiveUtils.&lt;/SPAN&gt;&lt;SPAN class=""&gt;whenOnce&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN class=""&gt;() =&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; view.loaded&lt;/SPAN&gt;&lt;SPAN&gt;) .&lt;/SPAN&gt;&lt;SPAN class=""&gt;then&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;() =&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; { ...&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;});&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 22 Dec 2022 17:48:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapview-whenonce-is-loaded/m-p/1243375#M79709</guid>
      <dc:creator>GregoryBologna</dc:creator>
      <dc:date>2022-12-22T17:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: MapView whenOnce is loaded</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapview-whenonce-is-loaded/m-p/1245115#M79764</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/193359"&gt;@GregoryBologna&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You could use the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#when" target="_self"&gt;when method&lt;/A&gt; on the MapView or watch the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#ready" target="_self"&gt;ready property&lt;/A&gt; on the MapView with the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html#whenOnce" target="_self"&gt;whenOnce method&lt;/A&gt; from reactiveUtils. The following codepen shows both ways:&amp;nbsp;&lt;A href="https://codepen.io/laurenb14/pen/MWBjaWZ?editors=1000" target="_blank"&gt;https://codepen.io/laurenb14/pen/MWBjaWZ?editors=1000&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 21:04:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapview-whenonce-is-loaded/m-p/1245115#M79764</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2023-01-03T21:04:34Z</dc:date>
    </item>
  </channel>
</rss>

