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

FormBody can only be resolved once from the context #1

Open
reggi opened this issue Nov 11, 2022 · 0 comments
Open

FormBody can only be resolved once from the context #1

reggi opened this issue Nov 11, 2022 · 0 comments

Comments

@reggi
Copy link
Owner

reggi commented Nov 11, 2022

One issue is that the FormBody within a request context will throw an error if the promise is resolved twice.

Need some kind of async "getter" on context that "gets" it once caches it for the request so that it's never resolved twice.

Could modify the request object to do this so you never have to think about it, and the api remains the same YOLO?

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

1 participant