How can I send data from one XBlock to another

Hello everyone,

I’m trying tu figure out how to send information between XBlocks. Let’s say I have XBlock A, that is generating continuous data every period, and XBlock B needs to be listening to this data in order to perform different tasks.

What is the best approach to accomplish that? Should I store the data in the analytics database? Can I create events and make other XBlocks listen?

Thanks for your help!
J

1 Like

Hi @Joan_Rodriguez.

Could you share a bit more details about what you’re trying to implement? Can’t you implement two different views within one XBlock instead of trying to solve the problem by two XBlocks?