Skip to content
Snippets Groups Projects
Commit 76967c65 authored by vildemv's avatar vildemv
Browse files

Implemented event-bus for communication between different independent components.

parent fa669b30
No related branches found
No related tags found
1 merge request!53Frontend improvements
declare module '@/components/service/eventBus.js' {
import mitt from 'mitt';
const eventBus: mitt.Emitter;
export default eventBus;
}
\ No newline at end of file
import mitt from 'mitt';
// Create a new event bus instance
const eventBus = mitt();
// Export the event bus instance
export default eventBus;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment