Comments (3)
Yes, it seems to be a PEBKAC, I am closing it. It appears I was lost in all manuals xD
Dynamically mounting action is working great for now, all stimulus features are reacting well to dynamic changes, this is awesome :)
Thank you for your quick & detailed help !
from stimulus-use.
In fairness, I don't think the prefixing of the controller name is documented very well, I'll open a PR to fix that if I get time 😊
Dynamically mounting action is working great for now, all stimulus features are reacting well to dynamic changes
Good to know!
Glad I could help anyway, happy Stimulus-ing!
from stimulus-use.
By default the event name has the controller name prefixed before it.
It looks like you have an appearable
controller you're doing this from? Try data-action="appearable:appear->frontend--search-loader#fetchNextPage"
, or pass
useIntersection(this, {
eventPrefix: false,
});
Dynamically mounting an action on the element i.e. lastRow.dataset.action = "...";
might also be a bit of funky design pattern in Stimulus. So if you're still having trouble after trying the above, there might be something going wrong there.
from stimulus-use.
Related Issues (20)
- Introduce useRequestIdleCallback optimization hook HOT 4
- `useIntersection` for multiple elements not calls `disappear` HOT 3
- `useIdle`: Typescript error: argument of type 'this' is not assignable to parameter of type "IdleComposableController" HOT 1
- `useIntersection` and `appear@window` HOT 5
- Documentation / design discussion
- Deprecated Stimulus-1 Syntax HOT 2
- Possible to exclude hotkeys from generated JS? HOT 5
- `useIntersection`: Update docu or differentiate between option-parameters HOT 1
- `useMemo` does not work as described on `get` properties HOT 4
- `useDebounce` sometimes clears event.params HOT 5
- Unexpected console log output HOT 5
- ESLint failure upgrading to 0.52.0 HOT 5
- Version 0.51.2 broke tributejs usage. HOT 8
- Error: Unable to resolve specifier 'stimulus-use/hotkeys' HOT 5
- useMapReduce - feature request HOT 1
- Weird ruby files in 0.51.0 HOT 2
- `useIntersection`: unobserve after triggering `appear` callback HOT 4
- Documentation for `useIntersection` is ahead of published version HOT 1
- `useTransition`: Allow options override from html attributes HOT 3
- `useTransition`: Turbo drive - cannot properly disconnect HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stimulus-use.