Code Sandbox widget: Is it possible to turn off auto-reload?

Per the documentation found here: https://www.palantir.com/docs/foundry/slate/widgets-advanced

This is a string of JavaScript that will get executed when the widget loads. Making any change to this JavaScript will cause the entire widget to reload.

Is there any way to turn this behavior off? I’m guessing no but wanted to confirm. I’m working on a Slate application through a remote desktop and the auto-reload behavior is slowing me down.

Thanks,

David

Hello David,

It is not possible to turn this behaviour off indeed.

One way to avoid the widget refresh while developing your JavaScript code is to use the browser console, selecting codeSandboxIframe.html and adjusting your JavaScript code there. Once you’re happy with it, you can transfer it back to the JavaScript field in the widget editor. Docs on this approach can be found here - https://www.palantir.com/docs/foundry/slate/widgets-advanced#debugging-tips.

Best regards,
Gregorian

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.