Backed out reactivity for Binding panel per discussion. Pending some UX discussion
This commit is contained in:
parent
b321eabb50
commit
e2c491ef96
|
@ -67,10 +67,6 @@
|
||||||
let targetMode = null
|
let targetMode = null
|
||||||
let expressionResult
|
let expressionResult
|
||||||
let evaluating = false
|
let evaluating = false
|
||||||
let mounted = false
|
|
||||||
|
|
||||||
// Value updates must be reprocessed to avoid timing issues
|
|
||||||
$: processUpdate(value, mounted)
|
|
||||||
|
|
||||||
$: useSnippets = allowSnippets && !$licensing.isFreePlan
|
$: useSnippets = allowSnippets && !$licensing.isFreePlan
|
||||||
$: editorModeOptions = getModeOptions(allowHBS, allowJS)
|
$: editorModeOptions = getModeOptions(allowHBS, allowJS)
|
||||||
|
@ -98,13 +94,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const processUpdate = value => {
|
|
||||||
if (!mounted) return
|
|
||||||
let isJS = value?.startsWith?.("{{ js ")
|
|
||||||
jsValue = isJS ? value : null
|
|
||||||
hbsValue = isJS ? null : value
|
|
||||||
}
|
|
||||||
|
|
||||||
const getHBSCompletions = bindingCompletions => {
|
const getHBSCompletions = bindingCompletions => {
|
||||||
return [
|
return [
|
||||||
hbAutocomplete([
|
hbAutocomplete([
|
||||||
|
@ -277,8 +266,6 @@
|
||||||
|
|
||||||
// Set the initial side panel
|
// Set the initial side panel
|
||||||
sidePanel = sidePanelOptions[0]
|
sidePanel = sidePanelOptions[0]
|
||||||
|
|
||||||
mounted = true
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue