Skip to content

feat: Add action helper - #57

Open
kdheepak wants to merge 3 commits into
starfederation:developfrom
kdheepak:kd/action-helper
Open

kdheepak wants to merge 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!

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