Action params not passed when event is load@window, working otherwhise?
See original GitHub issueAm I’m missing something from the documentation?
<a data-controller="test"
data-action="load@window->test#foo mouseover->test#foo"
data-test-bar-param="baz">
Hello World!
</a>
When load@window
event params is an empty object. When mouseover
it’s ok { bar: "baz" }
.
// test_controller.js
import { Controller } from '@hotwired/stimulus';
export default class extends Controller {
foo({ params }) {
console.log(params);
}
}
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Why aren't my parameters getting passed through to a ...
Use CustomEvent instead of Event for creating custom events. Specify your data in a 'details' object (see code). I changed the event name ......
Read more >Params not being passed when navigating between Stacks ...
I use the following code to create an initial screen that does not have a NavBar but pushes on a stack that contains...
Read more >Apex param not passing the value - in action support event on ...
am i doing something wrong here, please help me to get the value of fid to controller, i can't use action function as...
Read more >How to pass parameter in event - ServiceNow Community
If the business rule is being triggered as part of a scheduled job, use a GlideRecord argument in its place. Parm1, Passes a...
Read more >Recommended events | Google Analytics 4 Properties
Because these events require additional context to be meaningful, they are not sent automatically. Use this article to see the required and optional...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There is on known issue https://github.com/hotwired/stimulus/pull/495 merge but not yet published.
Will check for what is required to get this released
@rupasix
Exactly what I need/want.