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

feat: Bind service methods to class #290

Merged
merged 1 commit into from
May 9, 2021

Conversation

codebutler
Copy link
Contributor

@codebutler codebutler commented May 8, 2021

This makes it easier to pass around service function references. For example, with this change you can use react-query directly: useMutation(fooClient.bar);

@codebutler codebutler changed the title Bind service methods to class feat: Bind service methods to class May 8, 2021
@codebutler codebutler force-pushed the bind-service-methods branch 2 times, most recently from b315261 to 6a5eca7 Compare May 8, 2021 14:24
@stephenh
Copy link
Owner

stephenh commented May 9, 2021

Ah cool! I wouldn't have thought of using it with react-query like that.

Looks like there is a minor lint error, can you fix and then I'll merge?

Thanks!

This makes it easier to pass around service function references.
@stephenh stephenh merged commit 84060e2 into stephenh:main May 9, 2021
stephenh pushed a commit that referenced this pull request May 9, 2021
# [1.80.0](v1.79.8...v1.80.0) (2021-05-09)

### Features

* Bind service methods to class ([#290](#290)) ([84060e2](84060e2))
@stephenh
Copy link
Owner

stephenh commented May 9, 2021

🎉 This PR is included in version 1.80.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

2 participants