An open source alternative to Tableau. Embeddable visual analytic
TypeScript bidatadata-analysisdata-miningdata-visualizationedak6skanarieslow-codepivot-tablereacttableautableau-alternativetypescriptvegavega-litevisualization
fix: useGeoJSON (#159)
islxyqwe9b0c873a0867
diff --git a/packages/graphic-walker/src/hooks/service.ts b/packages/graphic-walker/src/hooks/service.tsindex feff903f..78c43abc 100644--- a/packages/graphic-walker/src/hooks/service.ts+++ b/packages/graphic-walker/src/hooks/service.ts@@ -18,9 +18,9 @@ export function useGeoJSON(geojson?: FeatureCollection, url?: IGeoUrl) {.then((json) => {if (timestamp !== lastFetchedRef.current) return;if (url.type === 'GeoJSON') {- data[key] = json;+ GeoJSONDict[key] = json;} else {- data[key] = feature(json, Object.keys(json.objects)[0]);+ GeoJSONDict[key] = feature(json, Object.keys(json.objects)[0]) as unknown as FeatureCollection;}setLastFetched(timestamp);});diff --git a/packages/graphic-walker/src/renderer/pureRenderer.tsx b/packages/graphic-walker/src/renderer/pureRenderer.tsxindex 912eae64..11e24a35 100644--- a/packages/graphic-walker/src/renderer/pureRenderer.tsx+++ b/packages/graphic-walker/src/renderer/pureRenderer.tsx@@ -86,7 +86,6 @@ const PureRenderer = forwardRef<IReactVegaHandler, IPureRendererProps>(functionlimit: limit ?? -1,computationFunction: computation,});- console.log(computation)// Dependencies that should not trigger effect individuallyconst latestFromRef = useRef({ data });latestFromRef.current = { data };