Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Adding info about receiving controller#675

Merged
dhh merged 1 commit into
hotwired:mainfrom
ThomasLandauer:patch-3
Apr 24, 2023
Merged

Adding info about receiving controller#675
dhh merged 1 commit into
hotwired:mainfrom
ThomasLandauer:patch-3

Conversation

@ThomasLandauer
Copy link
Copy Markdown
Contributor

Took me forever to figure this out ;-)
Info is taken from https://fullstackheroes.com/tutorials/stimulus/create-custom-events/

Question: When exactly is it necessary to add @window?

Took me forever to figure this out ;-)
Info is taken from https://fullstackheroes.com/tutorials/stimulus/create-custom-events/

Question: When exactly is it necessary to add `@window`?
@dhh dhh merged commit 49b4e3f into hotwired:main Apr 24, 2023
@adrienpoly
Copy link
Copy Markdown
Member

Question: When exactly is it necessary to add @window?

you need to add @window if your receiving controller is not the same node or a parent node of the emitting controller

@ThomasLandauer ThomasLandauer deleted the patch-3 branch April 24, 2023 14:36
@ThomasLandauer ThomasLandauer mentioned this pull request Apr 24, 2023
@ThomasLandauer
Copy link
Copy Markdown
Contributor Author

Thanks, see #676

dhh pushed a commit that referenced this pull request May 29, 2023
Info is taken from #675 (comment)
AndersGM pushed a commit to AndersGM/stimulus that referenced this pull request Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants