How to reduce undefined judgments - SolidJS