-
Notifications
You must be signed in to change notification settings - Fork 56
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: regenerate file-router files when layouts changes #2796
fix: regenerate file-router files when layouts changes #2796
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2796 +/- ##
==========================================
- Coverage 92.28% 92.28% -0.01%
==========================================
Files 81 81
Lines 2684 2683 -1
Branches 689 688 -1
==========================================
- Hits 2477 2476 -1
Misses 156 156
Partials 51 51
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Any suggestion on how to write at least test for this change? |
The layouts file can be updated by Flow at runtime when an annotated layout class is modified and reloaded. This change forces the Vite file-router plugin to regenerate files and trigger a fs-route-update to refresh the client configuration.
b56f53e
to
a3e9411
Compare
|
* fix: regenerate file-routes files when layouts change The layouts file can be updated by Flow at runtime when an annotated layout class is modified and reloaded. This change forces the Vite file-router plugin to regenerate files and trigger a fs-route-update to refresh the client configuration. * add tests * refactor test to reduce code duplication * remove unused import * rename test function * refactor tests * fix tests --------- Co-authored-by: Anton Platonov <[email protected]>
…4.5) (#2832) fix: regenerate file-router files when layouts changes (#2796) * fix: regenerate file-routes files when layouts change The layouts file can be updated by Flow at runtime when an annotated layout class is modified and reloaded. This change forces the Vite file-router plugin to regenerate files and trigger a fs-route-update to refresh the client configuration. * add tests * refactor test to reduce code duplication * remove unused import * rename test function * refactor tests * fix tests --------- Co-authored-by: Marco Collovati <[email protected]> Co-authored-by: Anton Platonov <[email protected]>
This ticket/PR has been released with Hilla 24.6.0.alpha1 and is also targeting the upcoming stable 24.6.0 version. |
Description
The layouts file can be updated by Flow at runtime when an annotated layout class is modified and reloaded.
This change forces the Vite file-router plugin to regenerate files and trigger a fs-route-update to refresh the client configuration.
Type of change
Checklist
Additional for
Feature
type of change