core icon indicating copy to clipboard operation
core copied to clipboard

[Bug report] routePath watcher different behavior in e2e and downstream

Open Mister-Hope opened this issue 10 months ago • 3 comments

Description

For core e2e, watchers are called expected:

Image

Reproduction:

  1. checkout to render-debug branch
  2. built the project with pnpm build
  3. run e2e docs with cd e2e && pnpm docs:dev (build is same)

But for downstream repos (tested on theme-hope and ecosystem, the watchers are not called in the same sequence:

Image

Reproduction:

  1. checkout to render-debug branch in ecosystem
  2. built the project with pnpm build
  3. run docs with cd docs && pnpm docs:dev (build is same)

This means any downstream plugins or theme can not read the page content DOM properly after navigating. For all the time, we are introducing a delay option for this.

Reproduction

See main text

Used Package Manager

pnpm

System Info

Not needed

Mister-Hope avatar Jan 17 '25 07:01 Mister-Hope

This issue is marked as stale because it has not had recent activity. Issues marked with stale will be closed if they have no activity within 7 days.

github-actions[bot] avatar Feb 02 '25 01:02 github-actions[bot]

This issue is marked as stale because it has not had recent activity. Issues marked with stale will be closed if they have no activity within 7 days.

github-actions[bot] avatar Feb 25 '25 01:02 github-actions[bot]

With onContentUpdated, we can avoid watching route for markdown content now.

Mister-Hope avatar Feb 28 '25 13:02 Mister-Hope