Skip to content

Commit

Permalink
Released v1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelklaessen committed Jan 21, 2018
1 parent c63757a commit 55b7a89
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Version 1.2.2
Released 2018-01-21

- Switched from `Component` to `PureComponent` so that the widget doesn't rerender when the props didn't change

# Version 1.2.1
Released 2018-01-21

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-tradingview-widget",
"version": "1.2.1",
"version": "1.2.2",
"description": "React component for rendering the TradingView Advanced Real-Time Chart Widget",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component } from 'react';
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';

export const IntervalTypes = {
Expand Down Expand Up @@ -27,7 +27,7 @@ export const BarStyles = {
const SCRIPT_ID = 'tradingview-widget-script';
const CONTAINER_ID = 'tradingview-widget';

export default class TradingViewWidget extends Component {
export default class TradingViewWidget extends PureComponent {
static propTypes = {
widgetType: PropTypes.string,
width: PropTypes.number,
Expand Down

0 comments on commit 55b7a89

Please sign in to comment.