-
Notifications
You must be signed in to change notification settings - Fork 0
merge: staging changes into main #372
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: main
Are you sure you want to change the base?
Conversation
client/src/components/main/shared/StrandSwitch/StrandSwitch.tsx
Outdated
Show resolved
Hide resolved
client/src/components/Pages/Structure/RegElement/RegElementForm/RegElementForm.tsx
Outdated
Show resolved
Hide resolved
client/src/components/Utilities/GetCoordinates/GetCoordinates.tsx
Outdated
Show resolved
Hide resolved
katie-perry
left a comment
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.
sorry this took me like 8 million years to review. It looks solid. I just left some minor comments that can totally be addressed later in a different PR (the biggest concern is really a setState in a render, since a setState will always cause a render, but it looks like there's an if branch that really only runs when the value has changed, so it's like you did a pseudo useEffect), so I'll go ahead and approve!
This reverts commit 1e0b78e.
* remove setState in a render + simplify syntax
@katiestahl would like you to do a quick review (there were other small UI changes other than #367) to make sure I didn't commit any UI crimes