-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Typescript Migration: client/modules/IDE/hook and client/modules/IDE/utils
#3787
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
base: develop
Are you sure you want to change the base?
Conversation
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.
memoized the methods in useSketchActions
client/modules/IDE/hook and client/modules/IDE/utils
| } from '../../../../test-utils'; | ||
| import { selectProjectName } from '../../selectors/project'; | ||
| import ToolbarComponent from './Toolbar'; | ||
| import { P5VersionProvider } from '../../hooks/useP5Version'; |
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.
Thanks so much for catching this!
| autosaveProject, | ||
| user, | ||
| project, | ||
| autosaveProject, |
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.
I think autosaveProject might be a duplicate!
| }, [dispatch, showToast, newProject, unsavedChanges]); | ||
|
|
||
| const saveSketch = useCallback( | ||
| (cmController: { getContent: () => null | undefined }) => { |
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.
Just want to confirm if the typing null | undefined is correct here!
|
Thanks so much for the cleanup!!! I just had a few comments in |
Migrate
client/modules/IDE/hooksandclient/modules/IDE/utilsChanges:
I have verified that this pull request:
npm run lint)npm run test)npm run typecheck)developbranch.Fixes #123