Esri / Esri/esri-react-boot

Prevent Map Component from re-render if state change

Open
#9 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.