1
0
Fork 0
mirror of synced 2024-09-20 19:33:10 +12:00

Backed out reactivity for Binding panel per discussion. Pending some UX discussion

This commit is contained in:
Dean 2024-08-13 16:40:48 +01:00
parent b321eabb50
commit e2c491ef96

View file

@ -67,10 +67,6 @@
let targetMode = null
let expressionResult
let evaluating = false
let mounted = false
// Value updates must be reprocessed to avoid timing issues
$: processUpdate(value, mounted)
$: useSnippets = allowSnippets && !$licensing.isFreePlan
$: 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 => {
return [
hbAutocomplete([
@ -277,8 +266,6 @@
// Set the initial side panel
sidePanel = sidePanelOptions[0]
mounted = true
})
</script>