Assets browser in a refresh loop when running `dev` and having CP js/css
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start by reproducing the reported steps on Statamic 6 a17 with the Stache Watcher enabled, first using npm run dev and then comparing with a build. The issue names no source files or tests, so trace what changes when visiting Assets and saving an Entry, including the reported user-saved event and watched CP resources. Done means the Assets page no longer refreshes repeatedly in the dev setup while still loading CP assets correctly.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bug description
Content warning: flickering in video
Oh another fun one that is odd to replicate.
When running rpm run dev on a site which has CP assets (i.e. a Bard addon, CP css, etc), when you visit Assets, you can be stuck in a refresh loop.
https://github.com/user-attachments/assets/ba374f05-b5ef-4097-96e3-4f2725776f1f
If you run npm run build, the issue is not present.
If you browse the Assets (after build), and then re-run dev, the issue is not present.
If you re-run dev, then save an Entry, the issue comes back.
It is like something is updating something else that is being watched which is triggering the refresh on loop - perhaps the Stache and asset metadata or something of the like?
I've got two Statamic 6 sites set up, one exhibits the behaviour with these steps reliably, the other doesn't.
For the one that doesn't, I've got our "Logger" addon installed, and can see that when I load Assets, every time, I get an event that the User is saved. Could it be that Assets loads, saves the user, but then the file watcher sees the user change so Vite causes a refresh?
How to reproduce
- Statamic 6 a17
- Add some CP resources (such as a Bard addon, CP css, etc)
- Run
npm run devand ensure the CP is loading correctly - Add some Assets to your container
- Create an Entry, and Save
- Go to Assets in the side nav
This can start the refresh loop.
Logs
Environment
Statamic 6 a17
Of note:
Stache Watcher: Enabled (auto)
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
- Ngôn ngữ chính
- PHP
- Star
- 4.9k
- Fork
- 647
- Merge trung bình
- 1 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 103
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của statamic/cms
-
preferences
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
There's a default crop when cropping imagesCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởassets
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
statamic/cms#15567 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Make native filesystem directory permissions configurable to support shared POSIX ACL accessĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
antlers
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Translation TwigBridge
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
symfony/symfony-docs#23308 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
sync-en
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
sync-en
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
WordPress/hosting-handbook#506 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
在主页右上角的头像菜单栏中增加说说写作快捷入口Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
mirai-mamori/Sakurairo#1435 · 1 bình luận ·