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

UseApiDataOptions: Add transform from AsyncDataOptions #12

Closed
stanislavpodolia opened this issue Feb 21, 2023 · 3 comments
Closed

UseApiDataOptions: Add transform from AsyncDataOptions #12

stanislavpodolia opened this issue Feb 21, 2023 · 3 comments

Comments

@stanislavpodolia
Copy link

We often use transform parameter from useAsyncData options in our projects. It lets you transform data before setting to the ".data" ref and I can't find any alternative solutions to implement this other than awaiting the async data and transforming it afterwards which defys the whole point of useAsyncData for me.
Can we add transform from AsyncDataOptions to UseApiDataOptions and pass it to useAsyncData or is there some non-obvious reason you left it out?

@johannschopplich
Copy link
Owner

Great feature request!

@johannschopplich
Copy link
Owner

I first had to understand how transform works under the hood. That's why I postponed it, honestly. 😄

Available from v0.9.0 onwards.

@stanislavpodolia
Copy link
Author

I first had to understand how transform works under the hood. That's why I postponed it, honestly. 😄

Available from v0.9.0 onwards.

Awesome, thanks!

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

No branches or pull requests

2 participants