rollthecloudinc / quell

Climate aware CMS breaking web apps free from carbon emissions.
https://demo.carbonfreed.app/pages/create-panel-page
GNU General Public License v3.0
14 stars 1 forks source link

Pre-rendering stalled #277

Open ng-druid opened 2 years ago

ng-druid commented 2 years ago

Druids can't be pre-rendered currently. When attempting to pre-render the render process stalls and doesn't output any rendered html files.

This was caused by the cssSub subscribers inside panel-page.component.ts. This problem has been circumvented by preventing those pipelines from running on the server. Those pipelines will only run the browser. I haven't identified the root cause and have only implemented this partial work around for now. As an added pre-caution css and class json files will only be fetched in the browser since they are not being used on the server since the subscribers aren't going to run that would modify the dom with the classes and inline css overrides.

The consequence of not including the css and class mutations on the server will be a slight flicker when using sheath. However, sheath is not being used at the moment. There are still several issues to work out before its ready for prime time. Instead utility classes are favored when styling content. Although this might be problematic for content other then snippets where default styles need to be overridden that are deeply nested inside external lib components like material. This is not a problem at the moment but could very well become a problem.