Lost references on recompile

Hi everyone.

I have a custom component that inherits from UStaticMeshComponent, which I have added inside a BP. I am able to set its static mesh property, but when I recompile, it always gets lost. I paste my class just in case it helps.

UCLASS(Blueprintable, BlueprintType, ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
class DONOTOPEN_API UInspectableMesh : public UStaticMeshComponent
{
	GENERATED_BODY()

	public:
		UFUNCTION(BlueprintCallable)
		void ConfigureInputIfNotConfiguredYet();

	private:
		bool inputAlreadyConfigured = false;
		float flipsPerSecond = 1.f;
		void RotateHorizontally(float axisValue);
		void RotateVertically(float axisValue);
		UFUNCTION(BlueprintCallable)
		void ResetRotationToZero();
};

Thanks in advance!