-
Notifications
You must be signed in to change notification settings - Fork 172
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
Highlight target scene of comment #4597
Conversation
if (remixState == null) { | ||
return | ||
} | ||
remixState.navigate(remixLocationRoute) | ||
}) | ||
} | ||
dispatch([ | ||
|
||
const actions = stripNulls([ |
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.
can you use openCommentThreadActions
?
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.
True, that is why i extracted these to openCommentThreadActions
, thanks!
Job #9444: Bundle Size — 66.34MiB (~+0.01%).
Warning Bundle contains 68 duplicate packages – View duplicate packages Bundle metrics
Bundle size by type
View job #9444 report View feature/highlight-comment-scene branch activity |
@@ -98,18 +99,22 @@ const CommentIndicator = React.memo(({ thread }: CommentIndicatorProps) => { | |||
const onClick = React.useCallback(() => { | |||
if (isOnAnotherRoute && remixLocationRoute != null) { | |||
// TODO: after we have scene identifier in the comment metadata we should only navigate the scene with the comment | |||
Object.keys(remixNavigationState).forEach((scene) => { | |||
const remixState = remixNavigationState[scene] | |||
Object.keys(remixNavigationState).forEach((s) => { |
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.
wasn't it better the way it was before?
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 renamed it because i have a variable named scene
in the outer scope. But I renamed that now, and renamed this inner s
to scene
again.
Description: