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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xnv
Copy link
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