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: hot reload was too aggresive #179

Merged
merged 6 commits into from
Jun 28, 2023
Merged

fix: hot reload was too aggresive #179

merged 6 commits into from
Jun 28, 2023

Conversation

maartenbreddels
Copy link
Contributor

@maartenbreddels maartenbreddels changed the title fix: enable reload tests fix: hot reload was too aggresive Jun 28, 2023
@maartenbreddels maartenbreddels marked this pull request as ready for review June 28, 2023 12:50
solara/server/reload.py Outdated Show resolved Hide resolved
@maartenbreddels maartenbreddels merged commit 1fc685a into master Jun 28, 2023
@maartenbreddels
Copy link
Contributor Author

Thank you @Lundez for opening the issue and thinking along!

maartenbreddels added a commit that referenced this pull request Jun 29, 2023
* test: enable reload tests

* fix: do not reload modules that are not under the app directory

Fixes #177
Fixes #148

* clean up code

* __file__ can be None

* call clear from the test code

* move to subdir so we do not reload the test modules
maartenbreddels added a commit that referenced this pull request Jul 20, 2023
* fix: autorouting should pick up modules that only define routes

Instead of having a Page component, we should also just allow a user
to define a set of routes.
This is what we need for the /apps/scrolling example.

* fix: hot reload was too aggresive (#179)

* test: enable reload tests

* fix: do not reload modules that are not under the app directory

Fixes #177
Fixes #148

* clean up code

* __file__ can be None

* call clear from the test code

* move to subdir so we do not reload the test modules

* also catch AttributeError when app is None during unitesting

* fix: solara patches should have no effect outside a solara context

* pass cls

* fix: ignore typing

* pass cls

* fix: ignore typing

---------

Co-authored-by: Maarten A. Breddels <maartenbreddels@gmail.com>
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.

2 participants