Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Assets browser in a refresh loop when running `dev` and having CP js/css

オープン
#13,158 コメント 16 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php, vite
領域
tooling

調査の方向性

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 の本文から書いたものです。

説明

can't recreate
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
  1. Statamic 6 a17
  2. Add some CP resources (such as a Bard addon, CP css, etc)
  3. Run npm run dev and ensure the CP is loading correctly
  4. Add some Assets to your container
  5. Create an Entry, and Save
  6. 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

statamic/cms のほかの issue

statamic/cms の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。