-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
SharedData: classifyComponent, openInEditorHost #575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Here is the doc for Customize requestYou can change the request host (default // App served from port 4000
// Webpack dev server on port 9000
Vue.config.devtoolsConfig = {
openInEditorHost: 'http://localhost:9000/'
} |
This may need Vue typings update. |
@evan Changed to |
…nents come from. (should work after merging vuejs/devtools-v6#575)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One suggestion, but overall LGTM 🚀
// Load persisted fields | ||
if (persist) { | ||
persist.forEach(key => { | ||
const value = storage.get(`shared-data:${key}`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we should use less generic storage key? Additional vue
related prefix would rather be enough :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is done on the devtools side, and thus the localStorage is already specific to the extension.
What's the timeline on this? Would be pretty useful for anyone using Webpacker to mount a Vue app in their Rails application. |
New
SharedData
system that automatically synchronize data between the devtools and the backend, with persisting capabilities. Data is reactive in Vue apps.Currently holds:
classifyComponents
(persisted), used by both the devtools component and the backend component highlighteropenInEditorHost
that can be set by the backend code (fix Open in editor not working when not served by node. #598)