trytriplex / triplex

The visual IDE for the web.
https://triplex.dev
GNU General Public License v3.0
809 stars 28 forks source link

Triplex "Reload Window Button" #232

Open Ctrlmonster opened 2 days ago

Ctrlmonster commented 2 days ago

I'm finding myself having to re-open Triplex Scene windows inside the VSCode extension a lot (i.e. because I'm dealing with HMR issues or similar). Having a shortcut to just re-start the window when necessary would be nice.

krispya commented 2 days ago

What is an example of a setup that requires a reload?

Ctrlmonster commented 2 days ago

From my perception the Triplex View Updates similarly to hmr in the browser dev environment. So it just happens to be necessary sometimes. I'll watch out for specifics.

itsdouges commented 1 day ago

Correct yeah. Let us know specifics if it's failing for a reason if it's something on our end we can fix it.

Ctrlmonster commented 1 day ago

I think it's more about giving the user Tools for reproducing errors that might be on their end. I.e. today I had some bad effect setups that were causing an error (the hmr state was garbo at that point) and I was triggering them through the props panel. But everytime it happened I had no way to quickly redo the steps in Triplex. I first had to close the window and reopen the component.

I'll keep my eyes open for things potentially on Triplex end too.

itsdouges commented 1 day ago

Ah yeah fair. Tbh in the standalone app you can hard refresh the whole scene. We can add the same for vs code.