You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With this setup, there's no need for a watch and so no value.value. The value is already being "watched" with the configuration above.
Example: v-tweakpane
A variation of Tweakpane, this time with Vue. Like Tweakpane, it uses a specific method for creating a widget and binding at the same time. This avoids the need to watch and avoids .value.value.
The example uses some callbacks for setup, which Leches doesn't need. Personally, I'd like to avoid having those.
Example: Vuetify
In this Vuetify example, most of the config that Leches does in <setup> is handled in <template>. Bindings are created using v-model in the <template>.
The current API is far from ideal, we initially followed the same DX as https://github.com/pmndrs/leva
but encountered number of issues"
value.value
for multiple controls Rethinkvalue.value
for multiple controls #92useControls
composable, impossible to have multiple distinct instances Leches sharesuseControls
; can't have multiple, distinct instances #98I will copy the different suggestions from @andretchen0
Example: Tweakpane
Tweakpane | Bindings
Tweakpane uses
.addBinding(stateObject, key, params)
.With this setup, there's no need for a
watch
and so novalue.value
. The value is already being "watched" with the configuration above.Example: v-tweakpane
A variation of Tweakpane, this time with Vue. Like Tweakpane, it uses a specific method for creating a widget and binding at the same time. This avoids the need to
watch
and avoids.value.value
.The example uses some callbacks for setup, which Leches doesn't need. Personally, I'd like to avoid having those.
Example: Vuetify
In this Vuetify example, most of the config that Leches does in
<setup>
is handled in<template>
. Bindings are created usingv-model
in the<template>
.The text was updated successfully, but these errors were encountered: