-
Notifications
You must be signed in to change notification settings - Fork 4
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
Tracking props and their values #79
Comments
Short answer is yes, I'd like to, but unfortunately I can't give you an estimate of when. The underlying problem is how to account for cases where props aren't known. import { Table, Heading, Cell } from "lib";
export const SpecificTable = ({ data }: { data: ReadonlyArray<unknown> }) => <Table heading={ Heading } cell={ Cell } data={ data }/> What are the props of There's a similar problem with completeness when using import { Component } from "lib";
const Renamed = Component;
export const Result = () => <Renamed/>; |
Well, ASAP would be good :) I'm also happy to contribute if we can align on a technical direction (and I can grok the setup here). Since it's one of our main requirements, we wouldn't pick radius-tracker if this ask was a straight "no". If it's coming down the line (or we can contribute) it would be a big pro for radius-tracker. It is supported in react-scanner, but they output a huge JSON that needs to be parsed/split to a database by us after the fact. What I like about radius-tracker is that it outputs basically a ready-to-go database, which seems more plug-and-play (so less additional work for us).
Yep, I would think that saying "unknown" or whatever the AST name for it is would be fine. It can always be improved upon later on, if we find solutions - for example, maybe the value can be stringified in some way. I believe Omlet also does the same - just says that it's a "complex value" or something like that.
That's true, but I agree that these are somewhat rare cases and it's fine if we need to manually take a look at specifics. The important part is that we know that the prop is used on that instance, so we at least know where to look. |
Hey! Nice tool you have here. I'm currently analyzing using this for our needs and comparing it to react-scanner and the like.
One feature that seems to be missing here is detailed props and prop values usage tracking. The usecase is likely self-evident, but to be clear: we want to know what props and values are used and where, so we could analyze what is used/unused, and make deprecation/removal decisions based on that.
Any plans to add such features?
The text was updated successfully, but these errors were encountered: