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

Fix widgets on refresh #177

Merged
merged 1 commit into from
May 28, 2023
Merged

Fix widgets on refresh #177

merged 1 commit into from
May 28, 2023

Conversation

TimPurdum
Copy link
Collaborator

Closes #176

Simply removed the check in the arcGisObjectRefs dictionary that was preventing re-creating widgets. I checked and none of the calls to createWidget seem susceptible to rapid-calling from the blazor render cycle, so this should be fine. We can't re-use the stored widgets, however, in case the properties of the widget were changed and the goal of the refresh is to update it.

On testing on Widgets.razor in the samples app, I noticed that I also needed to add logic to clear out existing widgets placed outside of the map view in container divs.

@TimPurdum TimPurdum requested review from seahro and AndersenBell May 20, 2023 15:10
@TimPurdum TimPurdum self-assigned this May 20, 2023
Copy link
Collaborator

@seahro seahro left a comment

Choose a reason for hiding this comment

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

straight forward

@TimPurdum TimPurdum merged commit 99429cf into develop May 28, 2023
@TimPurdum TimPurdum deleted the bug/176_widgets_refresh branch May 28, 2023 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Widgets do not re-render on MapView.Refresh()
2 participants