About the usage of Effect in Leptos. #4491
-
|
Hello, I'm a bit confused when using Leptos for server-side rendering (SSR). I don't understand why some web-related functions can be used in Effect::new() while others cannot. For example, in this case, the alert function works, but confirm does not—this really puzzles me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
There are some functions that the browser prevents you from calling without user interaction or direct invocation; there may be a difference between the underlying It's generally the best practice to avoid these older, blocking dialog functions in any case. |
Beta Was this translation helpful? Give feedback.
There are some functions that the browser prevents you from calling without user interaction or direct invocation; there may be a difference between the underlying
alert()andconfirm()here, I don't know. It's not really within Leptos's purview or control either way.It's generally the best practice to avoid these older, blocking dialog functions in any case.