-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
perf: memoize the extensions in code editor to reduce expensive calculations #441
Conversation
👷 Deploy request for es-eslint pending review.Visit the deploys page to approve it
|
✅ Deploy Preview for zh-hans-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for ja-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for new-eslint ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for fr-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for hi-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for pt-br-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for de-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I am ok with change. Leaving this open for others to verify/review.
The playground of the preview site is broken
Seems to work for me? 🤔 @kecrily |
After some investigation I think this is a problem with the preview component of netlify Open the preview page, I found an error message at the bottom Open the console, I found that the error report came from under netlify.com. I have also tested locally and everything works fine locally. @harish-sethuraman Can you verify if my investigation is correct? |
These errors do not look like its coming from our app? Its coming from netlify's deploy preview menu in the bottom I guess? |
Yes, that's what I thought. Just wanted to make sure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Prerequisites checklist
What is the purpose of this pull request?
Memoize the extensions in code editor to reduce expensive calculations on every re-render
What changes did you make? (Give an overview)
Used
useMemo
to wrap the extensions array to keep the reference.Is there anything you'd like reviewers to focus on?
Ref: https://www.npmjs.com/package/@uiw/react-codemirror?activeTab=readme