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

Page Refresh detection and data persistance between refresh page #10229

Open
2 tasks done
learncodingforweb opened this issue Jan 22, 2025 · 1 comment
Open
2 tasks done
Labels
type:enhancement Requests for feature enhancements or new features

Comments

@learncodingforweb
Copy link

Checklist

  • I have searched the existing issues for similar feature requests.
  • I added a descriptive title and summary to this issue.

Summary

Currently,

  • There is no way to detect page refresh
  • There is no way to persists data between page refresh

Why?

I want to open serial port manually and it should be keep opened serial port object, even user press page refresh button on browser. secondly it should close it on page exist.

How?

Currently i am using @st.cache_resource to open it by opening fixed serial port and close it using atexit.register(app_closed)

Additional Context

No response

@learncodingforweb learncodingforweb added the type:enhancement Requests for feature enhancements or new features label Jan 22, 2025
Copy link

To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.

Your vote helps us identify which enhancements matter most to our users.

Visits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Requests for feature enhancements or new features
Projects
None yet
Development

No branches or pull requests

1 participant