Why is this code not reactive? - SolidJS