Skip to content

Event bus cannot be setup twice in the project. #27

@cd-bash

Description

@cd-bash

Using the following lines at two places in the project:

const EVENT_BUS = new EventBus<Events>();
EVENT_BUS.subscribe('page_navigation', handlers.page_navigation);

returns the following error message:

Uncaught ReferenceError: Cannot access 'handlers' before initialization

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions