Jiri Zajic
06/12/2023, 7:30 PMMyCustomWidget.jsx
I included:
useEffect(() => {
onRequestAsyncRender();
const timer = setTimeout(() => {
console.log('This will run after 10 seconds!');
onResolveAsyncRender();
}, 10000);
return () => clearTimeout(timer);
}, []);
My widget (DeckGL + React Map GL) only renders hardcoded data and it displays sooner than most other widgets so 10 seconds should more than be plenty. Any advice? 🙏 Is there a way to debug exports? To simulate how the dashboard would load to be exported?Boris
06/13/2023, 10:26 AMJiri Zajic
06/13/2023, 11:03 AM?displayMode=export
the map is visible 🤔 And no, waiting longer (e.g., 30 seconds) does not help. Any other ideas?Boris
06/13/2023, 11:05 AMJiri Zajic
06/13/2023, 11:08 AMJiri Zajic
06/13/2023, 11:19 AMJiri Zajic
06/13/2023, 11:24 AMBoris
06/13/2023, 11:49 AMpreserveDrawingBuffer: true
needs to be added in order it's properly exported to pdf, but not sure how much it applies when it's "embedded" to gooddataMatyáš Kandl
06/14/2023, 11:55 AMpreserveDrawingBuffer: true
should do the trick, we are doing the same in the MapBox configuration for the export mode, see https://github.com/gooddata/gooddata-ui-sdk/blob/master/libs/sdk-ui-geo/src/core/geoChart/GeoChartRenderer.tsx#L182 I remember we were facing some similar issue (map was not rendered), when this was not set.Jiri Zajic
06/14/2023, 12:36 PMJiri Zajic
06/14/2023, 12:37 PMprocess.env.GDC_USERNAME
etc. are crashing my production build while working fine during development), but I'm already discussing with support. I'm preparing a reproducible scenario to share later today…