remove cx.render
This commit is contained in:
159 files changed
+600
-658
No files matched your search
@@ -52,7 +52,7 @@ fn mock_event(id: &'static str, value: &'static str) {
|
||||
#[allow(deprecated)]
|
||||
fn app() -> Element {
|
||||
let desktop_context: DesktopContext = cx.consume_context().unwrap();
|
||||
let received_events = use_state(|| 0);
|
||||
let received_events = use_signal(|| 0);
|
||||
|
||||
// button
|
||||
mock_event(
|
||||
|
||||
@@ -29,7 +29,7 @@ fn main() {
|
||||
fn use_inner_html(d: &'static str) -> Option<String> {
|
||||
let eval_provider = use_eval(cx);
|
||||
|
||||
let value: &UseRef<Option<String>> = use_ref(|| None);
|
||||
let value: Signal<Option<String>> = use_signal(|| None);
|
||||
use_effect((), |_| {
|
||||
to_owned![value, eval_provider];
|
||||
async move {
|
||||
|
||||
Reference in new issue
Block a user