-
|
$effect(() => {
if (dotLottie && dotLottie.isLoaded && typeof speed == 'number') {
dotLottie.setSpeed(speed);
}
});in this case, $effect(() => {
const _speed = speed;
if (dotLottie && dotLottie.isLoaded && typeof _speed == 'number') {
dotLottie.setSpeed(_speed);
}
}); |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Hello, What is If not seem normal to me when it's falsy : there no reactive statement run so the effect will not be called again... |
Beta Was this translation helpful? Give feedback.
-
|
fixed my moving |
Beta Was this translation helpful? Give feedback.
fixed my moving
speedchecking in condition to front.thanks to #14517 (comment)