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
I'm trying to dynamically return different component based on the type of setting.v, but in this case the Slider is rerendered each time setting changes.
But Ideally I'd like the ui type to be calculated inside the list like this, which works but the problem is the components are rerendered completely whenever setting.v changes. How can I set this up to get best of both worlds?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to dynamically return different component based on the type of setting.v, but in this case the Slider is rerendered each time setting changes.
If I precalculate the ui type like this:
then vanX.list works if it's setup like this:
But Ideally I'd like the ui type to be calculated inside the list like this, which works but the problem is the components are rerendered completely whenever setting.v changes. How can I set this up to get best of both worlds?
EDIT: writing down the problem helped me figure it out, needed vanX.raw to ignore setting reactivity while determining setting type
Beta Was this translation helpful? Give feedback.
All reactions