File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 136136 key : 'componentDidUpdate' ,
137137 value : function componentDidUpdate ( prevProps ) {
138138 console . log ( this . props , prevProps ) ;
139- if ( this . props . map !== prevProps . map || this . props . position . lat !== prevProps . lat || this . props . position . lng !== prevProps . lng || this . props . icon !== prevProps . icon ) {
139+ if ( this . props . map !== prevProps . map || this . props . position . lat !== prevProps . position . lat || this . props . position . lng !== prevProps . position . lng || this . props . icon !== prevProps . icon ) {
140140 if ( this . marker ) {
141141 this . marker . setMap ( null ) ;
142142 }
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ export class Marker extends React.Component {
3737 componentDidUpdate ( prevProps ) {
3838 console . log ( this . props , prevProps ) ;
3939 if ( ( this . props . map !== prevProps . map ) ||
40- ( this . props . position . lat !== prevProps . lat ) ||
41- ( this . props . position . lng !== prevProps . lng ) ||
40+ ( this . props . position . lat !== prevProps . position . lat ) ||
41+ ( this . props . position . lng !== prevProps . position . lng ) ||
4242 ( this . props . icon !== prevProps . icon ) ) {
4343 if ( this . marker ) {
4444 this . marker . setMap ( null ) ;
You can’t perform that action at this time.
0 commit comments