While working on #163 I noticed that promises just resolve with the last Partial DOM update event if there are multiple data-reflex-root defined. The cable-ready:before-morph event gets fired for every data-reflex-root once and therefore the promise is just resolved with the last update event.
I don't know if this is a big real world issue but I noticed it because I wanted to rely on the update events provided by the promise individually .
Related: #142
To Reproduce
Setup the Partial DOM Updates as described in the docs example with multiple data-reflex-root and any Reflex on the server-side.
It’s a leaky abstraction. Giving every call a uuid was the first step towards creating a coherent and unified structure for all of this... but there is work to be done.
Bug Report
Describe the bug
While working on #163 I noticed that promises just resolve with the last Partial DOM update event if there are multiple
data-reflex-root
defined. Thecable-ready:before-morph
event gets fired for everydata-reflex-root
once and therefore the promise is just resolved with the last update event.I don't know if this is a big real world issue but I noticed it because I wanted to rely on the update events provided by the promise individually .
Related: #142
To Reproduce
Setup the Partial DOM Updates as described in the docs example with multiple
data-reflex-root
and any Reflex on the server-side.Expected behavior
Either the promise returns an array of events or there is another way to rely on all fired events in context with this stimulate call.
Versions
StimulusReflex
External tools
Browser