pub fn send_message_batch(&self, messages: Vec<COMP::Message>) {
        // There is no reason to schedule empty batches.
        // This check is especially handy for the batch_callback method.
        if messages.is_empty() {
            return;
        }

        self.process(UpdateEvent::MessageBatch(messages).into());
    }
/// Send a batch of messages to the component.
///
/// This is useful for reducing re-renders of the components
/// because the messages are handled together and the view
/// function is called only once if needed.
///
/// Please be aware that currently this method synchronously
/// schedules calls to the [Component](Component) interface.
Send a batch of messages to the component.
This is useful for reducing re-renders of the components
because the messages are handled together and the view
function is called only once if needed.

Please be aware that currently this method synchronously
schedules calls to the [Component](Component) interface.
Send a batch of messages to the component . This is useful for reducing re - renders of the components because the messages are handled together and the view function is called only once if needed . Please be aware that currently this method synchronously schedules calls to the [ Component ] ( Component ) interface .
pub fn send_message_batch(&self, messages: Vec<COMP::Message>) {
        // There is no reason to schedule empty batches.
        // This check is especially handy for the batch_callback method.
        if messages.is_empty() {
            return;
        }
        self.process(UpdateEvent::MessageBatch(messages).into());
    }
pub fn send_message_batch ( & self , messages : Vec < COMP :: Message > ) { // There is no reason to schedule empty batches. // This check is especially handy for the batch_callback method. if messages . is_empty ( ) { return ; } self . process ( UpdateEvent :: MessageBatch ( messages ) . into ( ) ) ; }
Send a batch of messages to the component.
Send a batch of messages to the component .
&self
messages
Vec<COMP::Message>
&self
messages
Vec<COMP::Message>