Dot or hash in data action path

I have seen both dots and hashes used in data action path definitions, i.e.

data-action='google-maps-callback@window->location#initMap'

or

data-action='google-maps-callback@window->location.initMap'

Which one is correct (and where is this documented)?

Stimulus Reference > Actions

1 Like