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

Add hotkeys and async action web component examples. #846

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

richard-to
Copy link
Collaborator

Now that the child components issue has been fixed (#449), the hotkeys web component that I was working on a few weeks ago is working now.

Also adding the async action web component example.

Mostly more experimentation on using web components with Mesop.
Copy link
Collaborator

@wwwillchen wwwillchen left a comment

Choose a reason for hiding this comment

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

These are some pretty interesting web components. I'm wondering if should: a) support some of these things natively in mesop or b) make it easier to reuse web components across apps (e.g. mesop add foo-component) - WDYT?

@richard-to
Copy link
Collaborator Author

Those are great questions. I definitely think the hot key thing would be nice to support natively in mesop. I think we already have a Github issue for it. And I think to do "async actions" in a more full featured way, we'd probably need native support. I think the FastAPI middleware integration could potentially help with this since long running API calls could potentially be sent to a FastAPI endpoint. Something like celery integration would be nice (or whatever is better than celery nowadays). Does GCP have anyway to implement LRO APIs? Maybe revisit Websockets.

But I do like starting off with a web components since it's a cheap way to test out the behavior and usage in the short term. I definitely think the mesop add foo-component can be useful as well in general to improve sharing of components (granted we don't have much of an ecosystem yet).

So I think both ideas are useful.

@richard-to richard-to merged commit b749a60 into google:main Aug 26, 2024
4 checks passed
@richard-to richard-to deleted the async-action-hot-keys branch September 28, 2024 18:25
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