Skip to content

[docs] keyed fragment reruns (1.63.0 follow-up) - #1546

Merged
sfc-gh-lwilby-1 merged 7 commits into
mainfrom
docs/keyed-fragment-reruns
Sep 4, 2026
Merged

[docs] keyed fragment reruns (1.63.0 follow-up)#1546
sfc-gh-lwilby-1 merged 7 commits into
mainfrom
docs/keyed-fragment-reruns

Conversation

@sfc-gh-lwilby-1

Copy link
Copy Markdown
Contributor

Describe your changes

Adds prose coverage for the event-scoped fragment reruns feature that shipped in 1.63.0. The Autofunctions already render the new key param on st.fragment and the extended scope on st.rerun, but the concept page, extra API prose, and cheat sheet were not updated in the release PR.

  • Concept page (fragments.md): New "Target a fragment from outside with a key" section with code examples, multi-key usage, and a rules/constraints list (callback-only, unique keys, escalation, partial rendering).
  • st.rerun page: New "Using st.rerun inside callbacks" section noting that st.rerun now works in callbacks (behavior change in 1.63.0) and linking to the concept page for keyed reruns. Updated description and keywords.
  • st.fragment page: Added keyed-fragment keywords to metadata.
  • Cheat sheet: Added @st.fragment(key=...) and st.rerun("key") example.

GitHub Issue Link (if applicable)

Follow-up to streamlit/streamlit PRs #16158, #16159, #16161.

Testing Plan

  • Explanation of why no additional tests are needed
  • Docs-only changes; no code.

Made with Cursor

…heet

Co-authored-by: Cursor <cursoragent@cursor.com>

Co-authored-by: lawilby <laura.wilby+oss@snowflake.com>
@netlify

netlify Bot commented Sep 4, 2026

Copy link
Copy Markdown

Deploy Preview for streamlit-docs ready!

Name Link
🔨 Latest commit 43dfaeb
🔍 Latest deploy log https://app.netlify.com/projects/streamlit-docs/deploys/6a9ab1ece2c18300089e59da
😎 Deploy Preview https://deploy-preview-1546--streamlit-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

sfc-gh-lwilby-1 and others added 6 commits September 4, 2026 13:42
Co-authored-by: Cursor <cursoragent@cursor.com>

Co-authored-by: lawilby <laura.wilby+oss@snowflake.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

Co-authored-by: lawilby <laura.wilby+oss@snowflake.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

Co-authored-by: lawilby <laura.wilby+oss@snowflake.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

Co-authored-by: lawilby <laura.wilby+oss@snowflake.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

Co-authored-by: lawilby <laura.wilby+oss@snowflake.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

Co-authored-by: lawilby <laura.wilby+oss@snowflake.com>
@sfc-gh-lwilby-1
sfc-gh-lwilby-1 marked this pull request as ready for review September 4, 2026 11:57
@sfc-gh-lwilby-1
sfc-gh-lwilby-1 requested a review from a team as a code owner September 4, 2026 11:57
@sfc-gh-lwilby-1 sfc-gh-lwilby-1 changed the title Document keyed fragment reruns (1.63.0 follow-up) [docs] keyed fragment reruns (1.63.0 follow-up) Sep 4, 2026

@lukasmasuch lukasmasuch left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM 👍

@sfc-gh-lwilby-1
sfc-gh-lwilby-1 merged commit 134fd94 into main Sep 4, 2026
4 checks passed
@sfc-gh-lwilby-1
sfc-gh-lwilby-1 deleted the docs/keyed-fragment-reruns branch September 4, 2026 21:37
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