Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reusable map container #877

Merged
merged 4 commits into from
Aug 1, 2018
Merged

Reusable map container #877

merged 4 commits into from
Aug 1, 2018

Conversation

Gnito
Copy link
Contributor

@Gnito Gnito commented Aug 1, 2018

This makes SearchMap to be loaded only once. It should help in the following problems:

  • Performance: no need to load dynamic map every time user enters the search page view on SPA.
  • Efficiency for Google Maps pricing change: less unnecessary calls for a dynamic map.
  • Reaction to a bug when removing Google Map instance

@Gnito Gnito requested a review from lyyder August 1, 2018 12:04
@@ -240,6 +241,7 @@ export class SearchMapComponent extends Component {
const {
className,
rootClassName,
reuseableContainerClassName,
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be declared in the component prop types definition.

Copy link
Contributor

@lyyder lyyder left a comment

Choose a reason for hiding this comment

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

Looks great/creative. Check the one comment.

@Gnito Gnito force-pushed the reusable-search-map branch from c18e199 to 58b03ae Compare August 1, 2018 13:40
@Gnito Gnito force-pushed the reusable-search-map branch from 58b03ae to 53bd0b3 Compare August 1, 2018 13:49
@Gnito Gnito merged commit 31f4dda into master Aug 1, 2018
@Gnito Gnito deleted the reusable-search-map branch August 1, 2018 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants