Skip to content

Conversation

@maheskett
Copy link
Contributor

@maheskett maheskett commented Jun 14, 2018

  • Warning: Each child in an array or iterator should have a unique "key" prop.
  • Warning: Invalid value for prop title on tag
  • Warning: Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.

@maheskett maheskett force-pushed the maheskett/fix-issue-details-warning branch 2 times, most recently from 774a2fc to 2c3f210 Compare June 15, 2018 00:52
@maheskett maheskett requested a review from billyvg June 15, 2018 17:31
import ReactDOM from 'react-dom';
import ReactDOMServer from 'react-dom/server';

export default function(node) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add componentToString as a name for this function (there'll be an eslint rule for this).

let {date, dateGlobal, environment, title} = this.props;

return componentToString(
return ReactDOMServer.renderToStaticMarkup(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep componentToString here since we've updated its definition to use renderToStaticMarkup

{date ? (
<dd key={1}>
<Tooltip title={this.getTooltipTitle} tooltipOptions={{html: true}}>
<Tooltip title={this.getTooltipTitle()} tooltipOptions={{html: true}}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

@maheskett maheskett force-pushed the maheskett/fix-issue-details-warning branch from 2c3f210 to 3b3c659 Compare June 15, 2018 18:25
@maheskett maheskett force-pushed the maheskett/fix-issue-details-warning branch from 3b3c659 to 27c3913 Compare June 15, 2018 18:48
@maheskett maheskett merged commit f39e324 into master Jun 15, 2018
@maheskett maheskett deleted the maheskett/fix-issue-details-warning branch June 15, 2018 19:26
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants