Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make output of scope name optional for debug #247

Open
mindyourlifeguide opened this issue Sep 7, 2022 · 4 comments
Open

make output of scope name optional for debug #247

mindyourlifeguide opened this issue Sep 7, 2022 · 4 comments
Labels
RFC Some new feature that should be discussed

Comments

@mindyourlifeguide
Copy link

Auto-generated names litter the console and interfere with readability.
I propose to make the output of the scope name optional and hidden by default.

@AlexandrHoroshih
Copy link
Member

Hmm, maybe it may work like this?

I think, it is still better to somehow distinguish non-scope and in-scope updates 🤔

debug({ scopeFullName: false }, ...units)

// [store] $name 1
// [store] (in-scope) $name 2

@AlexandrHoroshih
Copy link
Member

Or maybe some smaller auto-generated name would do the trick?

E.g. shorter form:

// [store] (scope: unknown_1) $name 42

or just a number of scope:

// [store] (scope: 1) $name 42

@mindyourlifeguide
Copy link
Author

In applications with ssr, you should't have logic outside the scope. And in next js, the scope is also recreated regularly.

@mindyourlifeguide
Copy link
Author

A some smaller auto-generated name may improve the situation, but not solve it

@sergeysova sergeysova added the RFC Some new feature that should be discussed label Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Some new feature that should be discussed
Projects
None yet
Development

No branches or pull requests

3 participants