Skip to content

feat: Add action helper - #57

Merged
gazpachoking merged 3 commits into
starfederation:developfrom
kdheepak:kd/action-helper
Sep 27, 2026
Merged

gazpachoking merged 3 commits into
starfederation:developfrom
kdheepak:kd/action-helper

Conversation

@kdheepak

Copy link
Copy Markdown
Contributor

This is a follow up to #54 and the second part to #13

This PR adds an action generator helper for fetch and signal helpers. It also adds tests and a section in the README for this interface.

@gazpachoking

Copy link
Copy Markdown
Collaborator

Seems pretty good! I hadn't imagined we'd get into the runtime validation, but I guess it doesn't hurt much. And makes debugging easier than trying to debug it once it's running on the page.

@kdheepak

Copy link
Copy Markdown
Contributor Author

Yes, definitely easier to debug at a small cost. I think it is worth it for ergonomic APIs, then users can fallback to constructing it manually if they would like to.

Comment thread src/datastar_py/attributes.py Outdated
Comment thread README.md
@kdheepak

Copy link
Copy Markdown
Contributor Author

This PR should be ready to go now!

@gazpachoking
gazpachoking merged commit 0e046be into starfederation:develop Sep 27, 2026
2 checks passed
@kdheepak
kdheepak deleted the kd/action-helper branch September 27, 2026 07:18
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