Skip to content

[runes] Add the ability to get a list of dependencies #12908

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

Open
AlexRMU opened this issue Aug 19, 2024 · 0 comments
Open

[runes] Add the ability to get a list of dependencies #12908

AlexRMU opened this issue Aug 19, 2024 · 0 comments

Comments

@AlexRMU
Copy link

AlexRMU commented Aug 19, 2024

Describe the problem

With automatic dependency tracking, it sometimes becomes difficult to understand what is really going on. Especially if there are classes, functions that call other functions, libraries, conditional dependencies, etc.

It would be nice to be able to get a list of current dependencies with details.

Describe the proposed solution

  • contains the value of the dependency
  • contains the path from root variable to dependency (obj.a.b.c, arr[0].a)
  • contains the value of the root variable (obj, arr)
  • contains the call stack (or stacks) for the place in the code where this dependency is added (referenced)
  • contains the type of dependency ($state, $derived, ...)
  • for $derived, $effect, markup
  • through a rune or a utility? add to $inspect?
  • it is possible only through development tools and plugins?
  • it is possible only in development mode?

Importance

nice to have

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants