Skip to content
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

[feature request] update reactively and add a refresh button for assets #200

Closed
LoTwT opened this issue Jan 26, 2024 · 1 comment · Fixed by #212
Closed

[feature request] update reactively and add a refresh button for assets #200

LoTwT opened this issue Jan 26, 2024 · 1 comment · Fixed by #212

Comments

@LoTwT
Copy link
Contributor

LoTwT commented Jan 26, 2024

description

After creating new asset files in the project, the assets tab will not update reactively and has no refresh button now. Adding a refresh button and updating assets reactively will increase DX.

expected

  • add a refresh button
  • update assets' states reactively

to confirm

  • how to watch the creation and deletion of assets ( need to find an appropriate way )
  • should the states of assets in the preview drawer be updated reactively? ( It could rely on vite hmr )
@LoTwT LoTwT changed the title [feature request] add reactive update and refresh button for assets [feature request] update reactively and add a refresh button for assets Jan 26, 2024
@OneGIl
Copy link
Contributor

OneGIl commented Jan 26, 2024

不知道是否可以参考老版的 vite-plugin-vue-devtools 中的代码? 我曾提交过一个pr,里面包含了file watch的功能。
希望对你有帮助: ) vite-plugin-vue-devtools #183

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants