refresh in more cases

This commit is contained in:
Ruben Fiszel
2023-03-22 21:37:49 +01:00
parent e52b3da6cc
commit 9841f7e25a
2 changed files with 2 additions and 2 deletions
@@ -31,7 +31,7 @@
render={false}
{id}
{fields}
{autoRefresh}
autoRefresh={true}
{doNotRecomputeOnInputChanged}
bind:result
transformer={undefined}
@@ -95,7 +95,7 @@
runnable && runnable.type === 'runnableByName' ? runnable.inlineScript?.refreshOn ?? [] : []
function refreshIfAutoRefresh(_src: string) {
const refreshEnabled = autoRefresh || !doNotRecomputeOnInputChanged || refreshOn?.length > 0
const refreshEnabled = autoRefresh && (!doNotRecomputeOnInputChanged || refreshOn?.length > 0)
if (refreshEnabled && $worldStore.initialized) {
setDebouncedExecute()
}