Skip to content

Commit

Permalink
fix(utils): add description for the RESET symbol. (#2307)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* fix TS

---------

Co-authored-by: Daishi Kato <[email protected]>
  • Loading branch information
MiroslavPetrik and dai-shi authored Dec 28, 2023
1 parent e986e63 commit 63de5b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vanilla/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export const RESET = Symbol()
export const RESET = Symbol(
import.meta.env?.MODE !== 'production' ? 'RESET' : '',
)

1 comment on commit 63de5b0

@vercel
Copy link

@vercel vercel bot commented on 63de5b0 Dec 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.