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

Use arrow function to avoid new this binding #58

Merged
merged 1 commit into from
Apr 22, 2023
Merged

Use arrow function to avoid new this binding #58

merged 1 commit into from
Apr 22, 2023

Conversation

DustinBrett
Copy link
Contributor

While integrating this into a Next.js project I noticed that when it tried to run self.updateLastMessage it would crash Webpack in general and nothing else would load. Converting this to an arrow function to maintain the existing this binding fixed my issue. I'd reported this in #52.

Copy link
Member

@jinhongyii jinhongyii left a comment

Choose a reason for hiding this comment

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

LGTM!

@jinhongyii jinhongyii merged commit 28332cb into mlc-ai:main Apr 22, 2023
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.

None yet

2 participants