Generated geometry is not displayed in published app

Hello everyone,

I have a problem with my app. When I host the app locally via the CLI, everything works fine. However, in the published version, geometry generated trough Grasshopper is not displayed. Strangely enough, a part of the geometry (the floor plan) that I display in a second tab is displayed correctly. This means that the geometry and the Data for Step 3 must exist somewhere, but is not displayed in the first tab. (The data i want to show in Step 3 is also not available for display in the Published version)

Does anyone have any idea why this could be?

Here is a video that shows the App running on the CLI: https://www.youtube.com/watch?v=waEdTU50b8I
This video shows the i get in the hosted version: https://www.youtube.com/watch?v=fdyqWUI0R8o
And here is the corresponding GitHub repo: GitHub - Mulimark/Tinyhouse-Generator

Unfortunately i only have the worker locally on my computer, if someone wants to test the app i can make it available for a period of time for testing. Just contact me.

Many thanks in advance for any help!

Best regards,
Max

Hi @Mulimark ,

Apologies for the slow response. I do not yet have an answer for you, but will see if I can look into it now, or find someone that might help you.

Iโ€™ve taken a quick look at your code. It seems that you are saving the results to disc. This could result in some strange behaviour, as the framework is meant to be stateless (for more information on this, refer here). Here are some options that one can consider:

  • To store long-running results, you could use memoize. This does require the input and output to be JSON serializable, and your case is probably not the best for this, but due to the limitations of editor apps, I would recommend this option.
  • Storage would be the best option were you to be using โ€œsimpleโ€ or โ€œtreeโ€ type apps.
  • For small results, one could also save the results on a parameter such as a HiddenField by using the SetParamsButton. You can then save the JSON on the HiddenField, and then retrieve the saved result from that field. This is generally only meant for small results.