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 infinite loop when rerun and triggered widgets are used together in AppTest #8264

Merged

Conversation

AnOctopus
Copy link
Collaborator

Describe your changes

Reverts a previous fix that made trigger values correct in AppTest but introduced an infinite recursion when st.rerun() is called conditionally on the value of a trigger widget. Instead, making trigger widgets return correct values in AppTest is handled by storing their values at runtime using the new save_for_app_testing functionality introduced by #8189

GitHub Issue Link (if applicable)

#7768

Testing Plan

Regression test added


Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@AnOctopus AnOctopus merged commit ce69690 into streamlit:develop Mar 9, 2024
50 of 51 checks passed
@AnOctopus AnOctopus deleted the fix/app-test-rerun-trigger-loop branch March 9, 2024 00:34
zyxue pushed a commit to zyxue/streamlit that referenced this pull request Apr 16, 2024
…r in AppTest (streamlit#8264)

## Describe your changes
Reverts a previous fix that made trigger values correct in AppTest but
introduced an infinite recursion when `st.rerun()` is called
conditionally on the value of a trigger widget. Instead, making trigger
widgets return correct values in AppTest is handled by storing their
values at runtime using the new `save_for_app_testing` functionality
introduced by streamlit#8189

## GitHub Issue Link (if applicable)
streamlit#7768
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants