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

Update autoValue to accept async function #739

Open
sherryysj opened this issue Oct 24, 2023 · 2 comments · May be fixed by #741
Open

Update autoValue to accept async function #739

sherryysj opened this issue Oct 24, 2023 · 2 comments · May be fixed by #741

Comments

@sherryysj
Copy link

Is your feature request related to a problem? Please describe.
Meteor have updated their MongoDB functions to async, such as findOneAsync, and if we use these functions in autoValue function, we have to make the autoValue function as async as well. However, it does not work as autoValue seems won't wait for a promise when being calling.

Describe the solution you'd like
autoValue can work for async function

@jankapunkt
Copy link
Member

Thank you @sherryysj I checked and this requirement applies to all fields that are computable.

@jankapunkt jankapunkt linked a pull request Oct 24, 2023 that will close this issue
10 tasks
@jankapunkt jankapunkt linked a pull request Dec 21, 2023 that will close this issue
13 tasks
@jankapunkt
Copy link
Member

@sherryysj might be of interest to you: #741 (comment)

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