How can I stop code from executing before? - SolidJS