timothymiller / t4-app

A powerful cross-platform UI toolkit for building actually native iOS, Android, macOS, Windows, Linux, and Progressive Web Apps with React (Native).
https://t4stack.com
MIT License
1.31k stars 69 forks source link

Fix error for trpc empty pattern with null and undefined #146

Closed llamux closed 2 months ago

llamux commented 2 months ago

Currently the trpc empty pattern only works with arrays and throws an error when null or undefined is passed. Checking the array length after checking null and undefined fixes the error.

albbus-stack commented 2 months ago

LGTM, Thank you for your contribution 🤘