You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Debugging use-after-dispose issues without a way to definitively know the reactive chain is insane.
Describe the solution you'd like
I would like to see the reactive dependency graph in some way, the rendering part doesn't have to be a part of this PR, or a part of Leptos at all, ever, but just give us the underlying graph object so we can inspect and render it ourselves.
Describe alternatives you've considered
None that come to mind, I'm all ears if there's already a way to debug such issues well.
The text was updated successfully, but these errors were encountered:
See also discussion in #1378. IMO using tracing to hook into the many tracing events the library provides is the most useful way to build a general solution here.
Alternately, if you only want to provide the dependency graph itself, this can probably be done by piggybacking on the various subscriber traits.
On the other hand, the statement of the problem is actually about ownership, not about the reactive dependency graph at all. There are some simple ownership debugging tools built in as the debug_id() and ancestry() methods on Owner, which can help with seeing what the chain of ownership is at any given location.
There are some simple ownership debugging tools built in as the debug_id() and ancestry() methods on Owner, which can help with seeing what the chain of ownership is at any given location.
My main problem with that API is that I can't query the defined_at information from the debug_id. I would want information on each signals' exact definition location and usage location across the app.
Is your feature request related to a problem? Please describe.
Debugging use-after-dispose issues without a way to definitively know the reactive chain is insane.
Describe the solution you'd like
I would like to see the reactive dependency graph in some way, the rendering part doesn't have to be a part of this PR, or a part of Leptos at all, ever, but just give us the underlying graph object so we can inspect and render it ourselves.
Describe alternatives you've considered
None that come to mind, I'm all ears if there's already a way to debug such issues well.
The text was updated successfully, but these errors were encountered: