-
Notifications
You must be signed in to change notification settings - Fork 65
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
Public view fixes #2021
Public view fixes #2021
Conversation
mapStateToProps, | ||
mapDispatchToProps | ||
)(LightFileList) | ||
) |
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 don't understand this change. It seems we don't use router
in this component and we don't pass it neither to its children. Can you explain why this is needed?
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.
It is used here, in the mapDispatchToProps
of he component. But I agree, it's not very obvious. Do you think it would be better to include the Actions
file in this one to make it more explicit? Otherwise we can add a comment imo.
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.
The best solution is to not rely on ownprops.something
(since it can be dangerous for the perf) but I don't know how to handle that.
src/drive/web/modules/drive/Toolbar/components/ShortcutCreationModal.spec.jsx
Show resolved
Hide resolved
Lost during rebasing
Allows to use waitFor from react-testing-library
Rebasing #2017 was not straightforward and it appears I did loose a few changes in the process.
See individual commit messages for details.