triplex
triplex copied to clipboard
When a color attribute assigned to background is mounted for the first time it can never be unmounted
Take this code:
export function Component() {
return <><color args={["white"]} attach="background" /></>
}
When switching to another component the background is never unset. This only happens if the initial component opened sets background, it doesn't happen the other way e.g. opening another component then opening this one. When doing that and switching back the bg is, as expected, cleaned up.