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: improve multi-save hot-reload time #641

Merged
merged 2 commits into from
Nov 22, 2024

Conversation

aralroca
Copy link
Collaborator

Fixes #640

This PR improves the time when saving many times in a row during hot-reload.

Before:

A semaphore flag was waiting for the previous process to finish before starting the new one. This might make sense when we improve it so that instead of recompiling the whole app, it is done only for the specific file. Now, it does not make sense.

Now:

When a new process enters, it kills the previous one.

@aralroca aralroca changed the title fix: improve multi-refresh during hot-reload fix: improve multi-refresh time during hot-reload Nov 22, 2024
@aralroca aralroca changed the title fix: improve multi-refresh time during hot-reload fix: improve multi-save hot-reload time Nov 22, 2024
Copy link

pkg-pr-new bot commented Nov 22, 2024

Open in Stackblitz

brisa-adapter-vercel

bun add https://pkg.pr.new/brisa-build/brisa/brisa-adapter-vercel@641

brisa-pandacss

bun add https://pkg.pr.new/brisa-build/brisa/brisa-pandacss@641

brisa

bun add https://pkg.pr.new/brisa-build/brisa@641

brisa-tailwindcss

bun add https://pkg.pr.new/brisa-build/brisa/brisa-tailwindcss@641

www

bun add https://pkg.pr.new/brisa-build/brisa/www@641

create-brisa

bun add https://pkg.pr.new/brisa-build/brisa/create-brisa@641

commit: c8b2bcc

@aralroca aralroca merged commit 986fd84 into canary Nov 22, 2024
5 of 8 checks passed
@aralroca aralroca deleted the aralroca/multi-refresh-on-hot-reload branch November 22, 2024 12:21
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.

Hot Reload does not reload every change
1 participant