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

debug/logging -> can we print to console which code triggered a widget rebuild? #3740

Closed
mark8044 opened this issue Sep 12, 2024 · 1 comment
Assignees
Labels
bug Something isn't working needs triage

Comments

@mark8044
Copy link

Is it possible to have a printout to console informing us which call triggered a widget rebuild?

This can help us debug excessive rebuilds by not well thought out .watch calls, or otherwise

for example if I have two lines of code with .watch, maybe only one of them was inadvertently updated and triggered an entire rebuild of a widget, this would help us isolate that bug

@mark8044 mark8044 added bug Something isn't working needs triage labels Sep 12, 2024
@rrousselGit
Copy link
Owner

A devtool is in progress. For logging, you can use ProviderObserver. It should enable you to log an event whenever a provider emits an update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

2 participants