From 63de5b06fe6d2dffff569c3e1c31114b1dbc4d23 Mon Sep 17 00:00:00 2001 From: MiroslavPetrik Date: Thu, 28 Dec 2023 16:12:59 +0100 Subject: [PATCH] fix(utils): add description for the RESET symbol. (#2307) * fix(utils): add description for the RESET symbol. This improves debugging as the symbol no longer appears anonymous in logs. * Update src/vanilla/utils/constants.ts Co-authored-by: Daishi Kato * fix TS --------- Co-authored-by: Daishi Kato --- src/vanilla/utils/constants.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vanilla/utils/constants.ts b/src/vanilla/utils/constants.ts index c182e83561..0b35c80e60 100644 --- a/src/vanilla/utils/constants.ts +++ b/src/vanilla/utils/constants.ts @@ -1 +1,3 @@ -export const RESET = Symbol() +export const RESET = Symbol( + import.meta.env?.MODE !== 'production' ? 'RESET' : '', +)