mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
+ Move outside `Admin` module the reflex Therefore, this reflex should be _equivalent_ to its javascript controller: `ProductsV3` (relation is made through names) Remove unwanted line Actually call StimulusJS controller instead of calling the reflex itself In order to have this "showLoading", "hideLoading" behavior. It seems to be possible to directly use the Reflex itself (use `data-reflex` instead of `data-action`) but I can't make it work: the `stimulus-controller:after` event is never broadcasted/catched (but `stimulus-controller:before` yes...) Documentation: https://docs.stimulusreflex.com/guide/reflexes.html#understanding-stimulusreflex-controllers https://docs.stimulusreflex.com/guide/lifecycle.html#generic-life-cycle-methods Maybe @dacook if you want to have a look...