Skip to content

Honor all call options in callUnaryMethod #426

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

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

timostamm
Copy link
Member

callUnaryMethod accepts CallOptions from @connectrpc/connect. This updates the implementation to support all options.

Signed-off-by: Timo Stamm <ts@timostamm.de>
);
return result.message;
},
async (input: PartialMessage<I>) =>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

callUnaryMethod is used in other hooks. We can use it here as well.

Copy link
Collaborator

@paul-sachs paul-sachs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@timostamm timostamm merged commit 25e5a5d into main Sep 27, 2024
7 checks passed
@timostamm timostamm deleted the tstamm/Honor-all-call-options-in-callUnaryMethod branch September 27, 2024 11:45
@paul-sachs paul-sachs mentioned this pull request Oct 10, 2024
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

Successfully merging this pull request may close these issues.

2 participants