reearth/craco-cesium

RuntimeError: The Resource is already being fetched

dabuchera opened this issue · 0 comments

Getting this error while trying to using Cesium3DTileset
Code below

function App() {

    const handleReady = tileset => {
      if (viewer) {
        viewer.zoomTo(tileset);
      }
    };

    return (
      <Viewer
        full
        ref={e => {
          viewer = e && e.cesiumElement;
        }}>
        <Cesium3DTileset url={IonResource.fromAssetId(5714)} onReady={handleReady} />
      </Viewer>
    );}