installEffectGradientDevValidation

Installs the __DEV__ setProperty observer that validates Effect gradient props for both <effect> and <Effect>

Available since @roku-sdk/components 2.19.0

import { installEffectGradientDevValidation } from "@roku-sdk/components";
installEffectGradientDevValidation(): void

Description

Installs the __DEV__ setProperty observer that validates Effect gradient props for both <effect> and <Effect>. Safe to call more than once; no-ops when __DEV__ is off. Tests call this after enabling __DEV__ because Jest loads modules with __DEV__ false.


What’s Next

Did this page help you?