I’ve decided to use Stimulus for this. The connect() method of the controllers is good enough for this logic and it follows the MutationObserver - Web APIs | MDN API
1 Like
I’ve decided to use Stimulus for this. The connect() method of the controllers is good enough for this logic and it follows the MutationObserver - Web APIs | MDN API