Skip to content

ENG-6363: remix: ignore some changes in .web to reduce reloads#5473

Merged
adhami3310 merged 4 commits into
mainfrom
masenf/limit-reload
Jun 19, 2025
Merged

ENG-6363: remix: ignore some changes in .web to reduce reloads#5473
adhami3310 merged 4 commits into
mainfrom
masenf/limit-reload

Conversation

@masenf
Copy link
Copy Markdown
Collaborator

@masenf masenf commented Jun 18, 2025

ignore .web/backend and .web/reflex.install_frontend_packages.cached to avoid spurious additional full-reload

ignore .web/backend and .web/reflex.install_frontend_packages.cached
to avoid spurious additional full-reload
Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Optimizes development server performance by configuring Vite to ignore specific paths that trigger unnecessary full page reloads.

  • Modified reflex/.templates/web/vite.config.js to exclude .web/backend/** and .web/reflex.install_frontend_packages.cached from file watching
  • This change prevents redundant reloads when backend files change or frontend packages are installed

1 file reviewed, no comments
Edit PR Review Bot Settings | Greptile

Lendemor
Lendemor previously approved these changes Jun 18, 2025
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Jun 18, 2025

CodSpeed Performance Report

Merging #5473 will not alter performance

Comparing masenf/limit-reload (037b3fb) with main (29d9e63)

Summary

✅ 8 untouched benchmarks

If the app is stateless, then the on_error is a no-op, but having it here means
that any issues arising during HMR are caught by _our_ boundary, not the
default, which halts execution of the script, when simply reloading again can
resolve the issue.
@masenf masenf changed the title remix: ignore some changes in .web to reduce reloads ENG-6363: remix: ignore some changes in .web to reduce reloads Jun 19, 2025
@linear
Copy link
Copy Markdown

linear Bot commented Jun 19, 2025

@adhami3310 adhami3310 merged commit 6a29fbf into main Jun 19, 2025
41 checks passed
@adhami3310 adhami3310 deleted the masenf/limit-reload branch June 19, 2025 17:35
masenf added a commit that referenced this pull request Jun 19, 2025
* remix: ignore some changes in .web to reduce reloads

ignore .web/backend and .web/reflex.install_frontend_packages.cached
to avoid spurious additional full-reload

* ENG-6363: Ensure ErrorBoundary is always in the AppWrap

If the app is stateless, then the on_error is a no-op, but having it here means
that any issues arising during HMR are caught by _our_ boundary, not the
default, which halts execution of the script, when simply reloading again can
resolve the issue.

* update test expectation now that ErrorBoundary is always there

* test_call_script: Poll for the last external function to be defined
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