#758·stimulus

Can't route its own methods to events fired by initialize.

Author: NakajimaTakuyaCreated Mar 19, 2024Updated Mar 23, 2025

I noticed that it is not possible to route its own methods to events fired by initialize. (In the case of synchronous processing).

However, I also intuited that such a situation is not surprising considering that it is an event in the special process of initialize.

With that impression, I personally would be glad to see this behavior described in the documentation.

Below is the reproduced code.

https://codepen.io/Takuya-Nakajima/pen/ZEZLXWZ

(Sorry if I am just missing something in the documentation.)