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 9 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