Preserving State during HMR Errors - SolidJS