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

Fully clear App State on page change #8208

Merged
merged 2 commits into from Feb 27, 2024
Merged

Fully clear App State on page change #8208

merged 2 commits into from Feb 27, 2024

Conversation

kmcgrady
Copy link
Collaborator

@kmcgrady kmcgrady commented Feb 27, 2024

Describe your changes

We had a bug where stale elements of the old page remain visible to users on the new page. We want update our pendingElementBuffer based on new state and not from the original closure.

Testing Plan

  • Unit Test for this specific scenario
  • E2E test is difficult to implement due to the ephemeral nature of this edge case.

Contribution License Agreement

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

@kmcgrady kmcgrady changed the title Update element buffer based on new state Fully clear App State on page change Feb 27, 2024
@kmcgrady kmcgrady merged commit d832b54 into develop Feb 27, 2024
36 checks passed
@kmcgrady kmcgrady deleted the fix/stale-elements branch March 9, 2024 19:30
zyxue pushed a commit to zyxue/streamlit that referenced this pull request Apr 16, 2024
## Describe your changes

We had a bug where stale elements of the old page remain visible to
users on the new page. We want update our `pendingElementBuffer` based
on new state and not from the original closure.

## Testing Plan

- Unit Test for this specific scenario
- E2E test is difficult to implement due to the ephemeral nature of this
edge case.

---

**Contribution License Agreement**

By submitting this pull request you agree that all contributions to this
project are made under the Apache 2.0 license.
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