/// Sends an update message to the App.
///
/// The components need to call this method when they desire the app to
/// be notified of state changes.
Sends an update message to the App.
The components need to call this method when they desire the app to
be notified of state changes.
Sends an update message to the App . The components need to call this method when they desire the app to be notified of state changes .
fn do_react(&self) {
        let is_queued = *self.is_queued.borrow();
        if !is_queued {
            *self.is_queued.borrow_mut() = true;
            // Just send a `null` as we have only a single message to be sent.
            self.port
                .post_message(&JsValue::null())
                .expect("Could not send the message");
        }
    }
fn do_react ( & self ) { let is_queued = * self . is_queued . borrow ( ) ; if ! is_queued { * self . is_queued . borrow_mut ( ) = true ; // Just send a `null` as we have only a single message to be sent. self . port . post_message ( & JsValue :: null ( ) ) . expect ( " " ) ; } }
Sends an update message to the App.
Sends an update message to the App .
&self