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

Identical widgets on different pages are distinct #7264

Merged
merged 1 commit into from Aug 31, 2023

Conversation

AnOctopus
Copy link
Collaborator

Describe your changes

Use the active page (via ctx.page_script_hash) to distinguish otherwise identical widgets.

GitHub Issue Link (if applicable)

#6146

Testing Plan

  • Unit Tests (JS and/or Python)
    Updated to account for new argument to id calc
  • E2E Tests
    Updated MPA cypress test to do basic check that a widget is reset when page switching

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 25818d0 into streamlit:develop Aug 31, 2023
60 checks passed
@AnOctopus AnOctopus deleted the fix/widget-id-use-pages branch August 31, 2023 23:37
eric-skydio pushed a commit to eric-skydio/streamlit that referenced this pull request Dec 20, 2023
zyxue pushed a commit to zyxue/streamlit that referenced this pull request Mar 22, 2024
zyxue pushed a commit to zyxue/streamlit that referenced this pull request Apr 16, 2024
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