unsafeWindowOwner
com.raquo.laminar.api.Laminar.unsafeWindowOwner$
object unsafeWindowOwner extends Owner
An owner that never kills its possessions.
Be careful to only use for subscriptions whose lifetime should match the lifetime of dom.window
(that is, of your whole application, basically).
Legitimate use case: for app-wide observers of documentEvents and windowEvents.
Attributes
- Graph
-
- Supertypes
-
trait Ownerclass Objecttrait Matchableclass Any
- Self type
-
unsafeWindowOwner.type
In this article