Prevent Map Component from re-render if state change
Open
- Dominant language
- JavaScript
- Stars
- 46
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
I found this comment inside the project but still i didn't figure out how can i prevent map from reload
```
Conceptually, this component creates a "portal" in React by
closing its render method off from updates (by simply rendering a div and
never accepting re-renders) then reconnecting itself to the React lifecycle
by listening for any new props (using componentWillReceiveProps)
```
I want to send location as props to map then map zoom to this location
my issue that the map component keep re-rendering every time the location change
Contributor guide
Assessment
This issue has not been assessed yet.