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

refactor: use bind-decorator to bind methods to this #1057

Closed
wants to merge 1 commit into from

Conversation

miniak
Copy link
Contributor

@miniak miniak commented Apr 24, 2022

Fixes #1027

@miniak miniak force-pushed the bind-this-decorator branch 2 times, most recently from cbacd7d to 1f8796b Compare April 24, 2022 14:38
@miniak miniak force-pushed the bind-this-decorator branch from 1f8796b to f5678a2 Compare April 24, 2022 14:40
@@ -43,6 +43,7 @@
"@octokit/rest": "^16.43.1",
"@sentry/electron": "^2.5.3",
"@types/getos": "^3.0.1",
"bind-decorator": "^1.0.11",
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of adding a new dependency can you make a custom Autobind decorator. Learn about them here

@erickzhao
Copy link
Member

I think the MobX upgrade clears the path for us to migrate off of class components altogether moving forward as well.

@miniak miniak closed this Jan 10, 2023
@miniak miniak deleted the bind-this-decorator branch January 10, 2023 23:31
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.

Use Typescript Decorators for binding this to class Methods.
3 participants