hotwired / hotwired/stimulus

Idea: integrate with Invokers API (once it becomes available)

Open
#863 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
13.1k
Forks
441
PR merge metrics
No merged PRs in 30d

Description

Recently found out about the Invokers API (which, in itself, looks a bit like an attempt to make native web a bit more Stimulus-like) and thought that it would be awesome if you could specify actions in response to specific commands in the controller.

Something similar to how keydown works maybe?

<div data-controller="calculator">
    <!-- ... -->
    <output data-action="command.calculate->calculator#calculate command.reset->calculator#clear">
    </output>
</div>

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the linked Invoker Commands API documentation and compare its command model with the data-action syntax shown in the issue, including the existing keydown example it references. Done would mean a decided, documented integration approach for invoking controller actions in response to those commands once the API is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.