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

Buttons/page re-renders multiple times on page load #301

Open
jfrankl opened this issue Aug 14, 2020 · 0 comments
Open

Buttons/page re-renders multiple times on page load #301

jfrankl opened this issue Aug 14, 2020 · 0 comments

Comments

@jfrankl
Copy link
Contributor

jfrankl commented Aug 14, 2020

Description

I added a console.log on the geounit switching buttons. I noticed that when the map editing view loads, each of these buttons gets rendered/re-rendered five times. This might be related to #285, but I wanted to call it out in case it's separate. I thought this was interesting because it happens on page load.

Steps To Reproduce

  1. Add a console.log or similar to the geoLevelOptions.map loop
  2. Load a project
  3. Look in your console

Expected behavior

I'd expect these buttons to render once.

Actual behavior

They each render five times, it appears.

Screenshots

image

Your environment

  • OS: [e.g. Windows, macOS]: macOS
  • Browser: Chrome
  • Version [e.g. 22]: Latest

Additional context

Potentially related to #285.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants