|
Some checks are pending
build-gate / build (push) Waiting to run
initializeMap is async. If its component unmounts while it waits (a studio tab switch, a composite swapping views), Vue nulls containerRef and the next dereference threw "Cannot read properties of null (reading 'getRootNode')" from ensureEngineCSS. check:studio-all hit it about 1 run in 4 (gospel-dashboard); gospel-plugin found a second site one await later (containerRef.value.clientWidth after the animation frame). initializeMap now checks the ref after each of its three awaits and returns silently when it is gone, and ensureEngineCSS returns on a null element. An unmounted pane is normal, not an error, so nothing is logged. The ref is the only liveness signal: requiring isConnected too would silently stop maps that mount into a subtree before it is attached. Proof, deterministic in both directions: - check:map-unmount-mid-init holds mapbox-gl.js, opens a map plugin in the studio, switches away (destroying the pane), then releases the script. Before: FAIL 2/2 runs (research-map, doxa-simple-map threw the production error). After: PASS 2/2 across research-map, gospel-dashboard and doxa-simple-map. - check:map-unmount-race (gospel-plugin's browser-free test, adopted): the guarded ensureEngineCSS resolves; with the guard stripped it throws the exact message. - No regression: check:studio-all passes 31/31, and 19 plugins still create a live map canvas, as before. check:shared-reached now tracks this change with a regex marker (a control-flow fix has no literal that survives minification). It reports 12 consumer bundles still to rebuild. Verified: rebuilding doxa-simple-map moves it to "carries it". |
||
|---|---|---|
| .. | ||
| legends | ||
| poster | ||
| .gitkeep | ||
| printInPlace.js | ||
| retryableAsyncComponent.js | ||
| useAvatarGenerator.js | ||
| useCountryOutline.js | ||
| useDocumentFont.js | ||
| useEdgeScrollAffordance.js | ||
| useGeocoderSearch.js | ||
| useMapAttribution.js | ||
| useMapClustering.js | ||
| useMapData.js | ||
| useMapEvents.js | ||
| useMapFly.js | ||
| useMapInstance.js | ||
| useMapLayers.js | ||
| useMapPacket.js | ||
| useMapProvider.js | ||
| useMapSelection.js | ||
| useMapTheme.js | ||
| usePosterPrints.js | ||
| usePplrInstance.js | ||
| usePrayedLocally.js | ||
| usePrayerStatistics.js | ||
| useSearch.js | ||
| useSelectedPin.js | ||
| useShadowStyles.js | ||
| useSharedMapToken.js | ||