<?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: CalciteActionBar React Component not loading properly along an ArcGISMap Component in Calcite Design System Questions</title>
    <link>https://community.esri.com/t5/calcite-design-system-questions/calciteactionbar-react-component-not-loading/m-p/1306681#M446</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/696867"&gt;@KaterynaM&lt;/a&gt;, depending on the setup there could have been a conflict between the two implementations of the Maps SDK for JS and Calcite.&lt;/P&gt;&lt;P&gt;The &lt;A href="https://codesandbox.io/p/github/odoe/arcgis-calcite-react/main" target="_blank" rel="noopener"&gt;following is an example&lt;/A&gt;&amp;nbsp;setup with Maps SDK for JS, Calcite, React, and Vite to get started - and the &lt;A href="https://github.com/odoe/arcgis-calcite-react" target="_blank" rel="noopener"&gt;GitHub repository&lt;/A&gt; for full context.&lt;/P&gt;&lt;P&gt;Calcite and the Maps SDK teams is working towards additional documentation and resources in the coming weeks.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2023 20:34:06 GMT</pubDate>
    <dc:creator>KittyHurley</dc:creator>
    <dc:date>2023-07-07T20:34:06Z</dc:date>
    <item>
      <title>CalciteActionBar React Component not loading properly along an ArcGISMap Component</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calciteactionbar-react-component-not-loading/m-p/1305078#M441</link>
      <description>&lt;P&gt;I am trying to display a map with a CalciteActionBar on the left side of the screen using React Calcite Components and refs to an ArcGISMap component. When I forgo using Calcite components altogether and simply render the mapDiv, the map loads correctly. However, once I start adding a CalciteShell, CalciteShellPanel, and CalciteActionBar with CalciteActions inside, all of the resulting html elements end up with a size of 0x0, regardless of the CSS I have attempted to add. This happens whether I place the mapDiv div inside any of the CalciteComponents or outside of them entirely. I have gone through many different iterations based on different frameworks for combining React and Calcite that I've seen, to no avail. I would appreciate any advice on this.&lt;/P&gt;&lt;P&gt;App.jsx:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import React, { useRef, useEffect } from "react";
import MapView from "@arcgis/core/views/MapView";
import ArcGISMap from "@arcgis/core/Map";
import { CalciteShell, CalciteShellPanel, CalciteActionBar, CalciteAction } from '@esri/calcite-components-react';

import "./App.css";

function App() {

  const mapDiv = useRef(null);

  useEffect(() =&amp;gt; {
    if (mapDiv.current) {
      /**
       * Initialize application
       */
      const webmap = new ArcGISMap({
        basemap: "topo-vector",
      });

      const view = new MapView({
        container: mapDiv.current,
        map: webmap,
        center: [-74.5, 40],
        zoom: 9
      });
    }
  }, []);

  return (
    &amp;lt;div className="appContent"&amp;gt;
      &amp;lt;CalciteShell id="mainCalciteShell"&amp;gt;
        &amp;lt;CalciteShellPanel width-scale="1" slot="panel-start" position="start" id="left-shell-panel" displayMode="dock"&amp;gt;
          &amp;lt;CalciteActionBar slot="action-bar"&amp;gt;
            &amp;lt;CalciteAction
              data-action-id="home"
              icon="home"
              text="Reset"
              textEnabled={true}
            &amp;gt;&amp;lt;/CalciteAction&amp;gt;
            &amp;lt;CalciteAction
              data-action-id="legend"
              icon="legend"
              text="Legend"
              textEnabled={true}
              label="Legend"
            &amp;gt;&amp;lt;/CalciteAction&amp;gt;
          &amp;lt;/CalciteActionBar&amp;gt;
          &amp;lt;div className="mapDiv" ref={mapDiv}&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;/CalciteShellPanel&amp;gt;
      &amp;lt;/CalciteShell&amp;gt;
    &amp;lt;/div&amp;gt;
  );
}

export default App;&lt;/LI-CODE&gt;&lt;P&gt;Relevant libraries:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"@arcgis/core": "~4.27.0",
"@esri/calcite-components-react": "^1.4.2",
"react": "^18.2.0",&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Design Frameworks that I used as resources:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/jsapi-resources/tree/main/esm-samples/jsapi-react" target="_blank"&gt;jsapi-resources/esm-samples/jsapi-react at main · Esri/jsapi-resources · GitHub&amp;nbsp;&lt;/A&gt;(upon which this code snippet is based)&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/calcite-components-examples/tree/master/react" target="_blank"&gt;calcite-components-examples/react at master · Esri/calcite-components-examples · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/coryeicher/react-calcite-viewer/tree/main" target="_blank"&gt;coryeicher/react-calcite-viewer (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Note: I tried creating a codesandbox to show this error, but I kept getting a stack overflow error that I did not get by running the same code on VSCode.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 21:07:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calciteactionbar-react-component-not-loading/m-p/1305078#M441</guid>
      <dc:creator>KaterynaM</dc:creator>
      <dc:date>2023-06-30T21:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: CalciteActionBar React Component not loading properly along an ArcGISMap Component</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calciteactionbar-react-component-not-loading/m-p/1306681#M446</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/696867"&gt;@KaterynaM&lt;/a&gt;, depending on the setup there could have been a conflict between the two implementations of the Maps SDK for JS and Calcite.&lt;/P&gt;&lt;P&gt;The &lt;A href="https://codesandbox.io/p/github/odoe/arcgis-calcite-react/main" target="_blank" rel="noopener"&gt;following is an example&lt;/A&gt;&amp;nbsp;setup with Maps SDK for JS, Calcite, React, and Vite to get started - and the &lt;A href="https://github.com/odoe/arcgis-calcite-react" target="_blank" rel="noopener"&gt;GitHub repository&lt;/A&gt; for full context.&lt;/P&gt;&lt;P&gt;Calcite and the Maps SDK teams is working towards additional documentation and resources in the coming weeks.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 20:34:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calciteactionbar-react-component-not-loading/m-p/1306681#M446</guid>
      <dc:creator>KittyHurley</dc:creator>
      <dc:date>2023-07-07T20:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: CalciteActionBar React Component not loading properly along an ArcGISMap Component</title>
      <link>https://community.esri.com/t5/calcite-design-system-questions/calciteactionbar-react-component-not-loading/m-p/1308785#M447</link>
      <description>&lt;P&gt;Thanks, Kitty! This is incredibly helpful, and I look forward to exploring the documentation in the future &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 19:56:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/calcite-design-system-questions/calciteactionbar-react-component-not-loading/m-p/1308785#M447</guid>
      <dc:creator>KaterynaM</dc:creator>
      <dc:date>2023-07-17T19:56:13Z</dc:date>
    </item>
  </channel>
</rss>

