Outlet can't be detected when visibilitychange event is fired
Author: DavidPetrasekCreated Sep 28, 2025Updated Sep 28, 2025
Given this callback:
visibilityChangeCallback (e)
{
console.log(this.hasSomeOutlet);
}When switching to a different tab and then back to the initial tab, the console log output is null
Source: hotwired/stimulus