Skip to content

Commit

Permalink
fix(Polygon): fix unmount issue. (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 21, 2023
1 parent 79f461d commit d61ca8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/polygon/src/usePolygon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export const usePolygon = (props = {} as UsePolygon) => {
// // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API
// map && map.removeLayer(instance);
// }
setPolygon(undefined);
}
setPolygon(undefined);
};
}, [map, polygon]);

Expand Down

1 comment on commit d61ca8d

@vercel
Copy link

@vercel vercel bot commented on d61ca8d Oct 21, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

react-amap – ./

react-amap-one.vercel.app
react-amap-398188662.vercel.app
react-amap-git-master-398188662.vercel.app

Please sign in to comment.