Skip to content

Nav component performing slowly (bad implementation) #4575

Description

@oengusmacinog-zz

Bug Report

  • Package version(s): v5.82.1
  • Browser and OS versions: All

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? Not now

Requested priority: Normal

Describe the issue:

Nav component performing slowly.

Actual behavior:

The mergeStyles function getClassNames being called multiple times in private methods. This was originally done because of the nested structure (Nav, Group/Accordion, Links).

Expected behavior:

Optimally this component needs a refactor that will break it up into subcomponents like NavLinks, Nav, and the styles can be broken up and applied properly. There may be a quicker solution, but I don't see one right away.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions