#how to trigger a rerender when a server sent event is received?

1 messages · Page 1 of 1 (latest)

plush wave
#

i know i can use gloo_net::eventsource for receiving server sent events, but i dont know how to trigger a rerender when i receive an event
(im using csr)

inner notch
#

You must send a message to your component. Your message handler then gets the opportunity of signalling whether the view method is called again.