antfu-collective / vite-plugin-inspect

Inspect the intermediate state of Vite plugins
MIT License
1.29k stars 75 forks source link

Navigating between modules does not work, module page is always the same #80

Closed remorses closed 1 year ago

remorses commented 1 year ago

Describe the bug

After i click a module in the list, close the tabs and open another one the module view does not change, it keeps the first one.

I am not a Vue expert but the problem seem to be here, the id doesn't seem to change on navigation, even if the query param is updated https://github.com/antfu/vite-plugin-inspect/blob/d9effc0e6624eb7e610ca55ae37a0a33e626a9d5/src/client/pages/index/module.vue#L10

This happens in this repo too

Reproduction

https://github.com/antfu/vite-plugin-inspect/

System Info

System:
    OS: macOS 13.3
    CPU: (10) arm64 Apple M2 Pro
    Memory: 107.08 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.0 - ~/.local/share/pnpm/node
    Yarn: 1.22.19 - ~/.local/share/pnpm/yarn
    npm: 9.5.1 - ~/.local/share/pnpm/npm
  Browsers:
    Chrome: 114.0.5735.198
    Safari: 16.4

Used Package Manager

pnpm

Validations