setupDevtoolsPlugin method not worked sometime
Open
Nobody has claimed this yet.
need reproduction
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 279
- PR merge metrics
- No merged PRs in 30d
Description
I write a plugin for devtools, when I use
import { setupDevtoolsPlugin } from '@vue/devtools-api'
setupDevtoolsPlugin({
id: 'some_id',
label: 'some_label',
packageName: 'launch-editor',
app,
}, (api) => {
console.log('🚀 ~ setupDevtools ~ api:', api)
api.on.inspectComponent((payload, context) => {
console.log('🚀 ~ setupDevtools ~ payload:', payload)
})
Sometime the log does not print, but I refresh the page almost it can print.
Does devtools have caching ?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the setupDevtoolsPlugin call and the api.on.inspectComponent callback shown in the issue. Reproduce the missing log with and without a page refresh, then determine what behavior should make the callback log consistently; done means the callback is reliably invoked without requiring a refresh.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100