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

Vessel history/performance improvements #897

Merged
merged 7 commits into from
Sep 8, 2021

Conversation

j8seangel
Copy link
Collaborator

Improve VV performance with:

  • Not rendering all tabs until is loaded, for example this avoid rendering the map (expensive in memory and network) until needed
  • Avoid unnecessary and heavy re-renders

@j8seangel j8seangel requested a review from rdgfuentes September 8, 2021 12:53
@changeset-bot
Copy link

changeset-bot bot commented Sep 8, 2021

🦋 Changeset detected

Latest commit: 9bad2ee

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@globalfishingwatch/ui-components Minor
@globalfishingwatchapp/fishing-map Patch
@globalfishingwatchapp/tile-inspector Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@global-fishing-watch-bot
Copy link

Automatic is false. You need to set a label Deploy to run the deploy in dev environment

@j8seangel j8seangel mentioned this pull request Sep 8, 2021
2 tasks
section: SettingEventSectionName,
settings: SettingsEvents
) => {
const onlyUnique = (value: Region, index: number, self: Region[]) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍 Right, we don't need to create a new instance of this on every call to the useSettingsRegionsConnect hook

{ id: MarineRegionType.eez, data: eezs },
{ id: MarineRegionType.mpa, data: mpas },
{ id: MarineRegionType.rfmo, data: rfmos },
{ id: MarineRegionType.eez, data: eezs.sort(sortRegionAlphabetically) },
Copy link
Collaborator

Choose a reason for hiding this comment

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

💯

@j8seangel j8seangel merged commit 9feea83 into develop Sep 8, 2021
@j8seangel j8seangel deleted the vessel-history/performance-improvements branch September 8, 2021 15:13
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.

2 participants