mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-09-17 05:52:20 +09:00
Hello world
First open source release of Campfire 🎉
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { Controller } from "@hotwired/stimulus"
|
||||
|
||||
// Unsubscribe a container from turbo streaming actions (by removing its id) can address timing jank
|
||||
// when turbo streaming updates race against a full controller response.
|
||||
export default class extends Controller {
|
||||
static targets = [ "container" ]
|
||||
|
||||
unsubscribe() {
|
||||
this.containerTarget.removeAttribute("id")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user