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

do not clear all decorated pages during AppHarness tests #3093

Merged

Conversation

benedikt-bartscher
Copy link
Contributor

Mitigates issues with multiple AppHarness instances running against the same app.

AppHarness currently clears the global scoped DECORATED_PAGES before starting the app. But reflex only reloads the "root" app module, reloading is not recursive. If you import a module with decorated pages (@rx.page) those pages are not applied after the first AppHarness instance is done.

This PR tries to "teardown" the changes during the test, similar to #2916

@benedikt-bartscher benedikt-bartscher marked this pull request as ready for review April 16, 2024 01:13
Copy link
Collaborator

@masenf masenf left a comment

Choose a reason for hiding this comment

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

I like this one. Thanks

@picklelo picklelo merged commit 3014db1 into reflex-dev:main Apr 16, 2024
46 checks passed
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.

None yet

3 participants