Is there a way to pass a property from one component to another, even if they are siblings, after the page has been refreshed? I want this to happen automatically on page load. To achieve this, I am using an eventBus:
EventBus.$emit('generatedSum', this.sum);
In the sibling component, I receive the emitted data with:
EventBus.$on('generatedSum', (sum) => {
this.correct = sum;
});
Both operations are placed within the created hook in the lifecycle:
created(){}
The issue I am facing is that when the code is recompiled after saving changes, the property is successfully passed to the sibling component. However, upon manual refreshing of the page, the property does not appear in the sibling component as expected.