Skip to content

Conversation

@AlexAndBear
Copy link
Contributor

Description

Related Issue

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear AlexAndBear requested review from Copilot and kulmann July 30, 2025 22:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a pathchange event dispatch mechanism to enable external integrations to react to route changes in the OpenCloud web runtime. The implementation dispatches a custom event whenever the route path changes.

  • Added a router.afterEach hook to monitor route changes
  • Dispatches a custom "pathchange" event with route details when the path changes

AlexAndBear and others added 2 commits July 31, 2025 00:44
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
}

const event = new CustomEvent('pathchange', {
detail: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
detail: {
details: {

why not plural form?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlexAndBear AlexAndBear merged commit 15e5bd6 into main Aug 1, 2025
29 checks passed
@AlexAndBear AlexAndBear deleted the issues/1030 branch August 1, 2025 08:16
@openclouders openclouders mentioned this pull request Aug 1, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants