rusackas commented on a change in pull request #11239:
URL:
https://github.com/apache/incubator-superset/pull/11239#discussion_r508203070
##########
File path: superset-frontend/src/visualizations/TimeTable/TimeTable.jsx
##########
@@ -89,7 +90,74 @@ const defaultProps = {
url: '',
};
+const TimeTableStyles = styled.div`
+ height: ${props => props.height}px;
+
+ th {
+ z-index: 1; // to cover sparkline
+ }
+`;
+
class TimeTable extends React.PureComponent {
+ memoizedColumns = memoize(columnConfigs => [
Review comment:
While this memoized function only takes one parameter, and thus is not
subject to _that_ particular pitfall of lodash/memoize, it might be worth using
`memoize-one` instead, or refactoring to a function component and using
`useMemo` for safety.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]