Skip to content

Conversation

@Sub-Xaero
Copy link
Contributor

I take no credit for this, Sean Doyle did all the hard work in #367. If Sean no longer wants to commit his time to maintaining this PR, I understand. But it would be a terrible shame for this work to be abandoned at the 11th hour, as this is a piece of functionality I think a lot of Stimulus developers have on their wishlist.

If all parties are happy for the work he did to still go forward, I'm happy to take this over the line.

Closes [#336][]

---

Implements the `TargetObserver` to monitor when elements declaring
`[data-${identifier}-target]` are added or removed from a `Context`
_after_ being connected and _before_ being disconnected.

In support of iterating through target tokens, export the
`TokenListObserver` module's `parseTokenString` function.

[#336]: #336
@dhh
Copy link
Member

dhh commented Jun 14, 2021

Would be happy to see this move forward 👍

domchristie added a commit to domchristie/webrtc-hotwire-rails that referenced this pull request Jun 26, 2021
Replace event system with TargetObserver as proposed in hotwired/stimulus#409 and teardown clients when the remote video is removed
domchristie added a commit to domchristie/webrtc-hotwire-rails that referenced this pull request Jun 26, 2021
Replace event system with TargetObserver as proposed in hotwired/stimulus#409 and teardown clients when the remote video is removed
@dhh dhh merged commit 49ea238 into hotwired:main Jul 1, 2021
@Sub-Xaero Sub-Xaero deleted the target-callback branch July 1, 2021 07:41
@trsteel88
Copy link

@dhh, I'm keen to start using this feature but it doesn't look like there has been a release since December 2020. Will a new tag be released soon for 2.1?

@marcoroth
Copy link
Member

@trsteel88 There is a new release planned. In the meantime you can use the latest dev-build in order to make use of this feature today. Swap your Stimulus dependency in your package.json with this:

"stimulus": "https://github.com/hotwired/dev-builds/archive/stimulus/353890e.tar.gz"

@trsteel88
Copy link

Thanks @marcoroth. Do you have a set release cycle documented?

p.s absolutely loving stimulus and turbo links! Great work guys.

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.

5 participants