Skip to content

Commit 2c26267

Browse files
committed
moar fixes 2
1 parent 248a1e4 commit 2c26267

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dist/components/Marker.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@
135135
}, {
136136
key: "componentDidUpdate",
137137
value: function componentDidUpdate(prevProps) {
138+
console.log("----------");
139+
console.log(this.props.map == prevProps.map);
140+
console.log(this.props.position == prevProps.position);
141+
console.log(this.props.icon == prevProps.icon);
138142
if (!(0, _lodash.isEqual)(this.props.map, prevProps.map) || !(0, _lodash.isEqual)(this.props.position, prevProps.position) || !(0, _lodash.isEqual)(this.props.icon, prevProps.icon)) {
139143
if (this.marker) {
140144
this.marker.setMap(null);

src/components/Marker.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ export class Marker extends React.Component {
3636
}
3737

3838
componentDidUpdate(prevProps) {
39+
console.log("----------");
40+
console.log(this.props.map == prevProps.map);
41+
console.log(this.props.position == prevProps.position);
42+
console.log(this.props.icon == prevProps.icon);
3943
if (!isEqual(this.props.map, prevProps.map) ||
4044
!isEqual(this.props.position, prevProps.position) ||
4145
!isEqual(this.props.icon, prevProps.icon)) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy