Skip to content

fix(serve): avoid to reload twice when -w detects change#1243

Open
xnv wants to merge 1 commit intomasterfrom
fix-serve-watch
Open

fix(serve): avoid to reload twice when -w detects change#1243
xnv wants to merge 1 commit intomasterfrom
fix-serve-watch

Conversation

@xnv
Copy link
Copy Markdown
Member

@xnv xnv commented Jun 1, 2023

掲題どおり。

serve で -w オプションを指定した時、アセットを変更すると、アセットの更新と (それが引き起こす akashic scan による) game.json 更新につられて二度リロードが走っており、体験としていまいちでした。これを修正します。

なお従前の実装でも、このような「複数の変更」をまとめて一度のリロードで済むように試みていました。が、正しく機能していませんでした。むしろ複数の変更が行われることを想定して 1000ms 待つことがリロードをワンテンポ遅らせ、体験を損ねていました。

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 this pull request may close these issues.

3 participants