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

Data tracing: be able to handle const {_a, _b, ...data} = useHook() spreads #5662

Closed
balazsbajorics opened this issue May 13, 2024 · 0 comments · Fixed by #5694
Closed

Data tracing: be able to handle const {_a, _b, ...data} = useHook() spreads #5662

balazsbajorics opened this issue May 13, 2024 · 0 comments · Fixed by #5694
Assignees

Comments

@balazsbajorics
Copy link
Contributor

For these data, we currently return DataTracingFailed but instead we should return DataTracingToAHookCall. dataPathIntoAttribute should become optional, as some array cases (const [_one, _two, ...data] = useArrayHook()) are not simply addressable using an object path, and in those cases it's best to just leave it empty instead of it containing a wrong value.

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

Successfully merging a pull request may close this issue.

3 participants