Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[TS migration] Migrate 'AnchorForCommentsOnly' component to TypeScript #32670
[TS migration] Migrate 'AnchorForCommentsOnly' component to TypeScript #32670
Changes from 7 commits
fa0e582
1112a8b
d70f96b
de21d8d
42f9992
3a3a37e
e5baca5
9dafe7a
92e5ab8
b66fe6e
2ba2598
c558403
7bf1386
875cf8a
27cbc79
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Should we add
'current' in linkRef
check, to avoid possible crash?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.
@getusha hm, is there a case where
linkRef
doesn't havecurrent
field? I think ref object should have current valueThere 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.
Seems like we don't need it as the component is functional component.
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.
why you got rid of
linkProps.href
?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.
Because it looks like
linkProps.href
is or havehref
value orundefined
anywayApp/src/components/AnchorForCommentsOnly/BaseAnchorForCommentsOnly.tsx
Line 53 in d70f96b
This file was deleted.
This file was deleted.