How to detect change of ref value - SolidJS