Assets browser in a refresh loop when running `dev` and having CP js/css
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- PHP
- スター
- 4.9k
- フォーク
- 647
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 102
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
statamic/cms のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
assets
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
accessibility
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
antlers
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 2 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
smarty-php/smarty#1215 ·
-
sync-en
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
sync-en
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 4 日以内に返信