Layout remounts on every paths

Offen
#148 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@rifat-ml arbeitet bereits daran.

Seit 16.6.2022.

  • #149 von @rifat-ml — ohne Merge geschlossen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

bug

There are three types of layouts currently we've on this template:

  1. Blank Layout
  2. Sidebar Layout
  3. Header Layout

On public paths like authentication and registration, we've used the Blank Layout and for private paths, we've options to choose different layouts like Sidebar Layout and Header Layout. So whatever the layout is the same layout shouldn't be remounted on every path change. But currently, the same layout is remounting on every path change. That is an issue in some cases as the sidebar or navbar sometimes shuts and opens unexpectedly while toggling. And also it's a heavy operation on DOM to mount and unmount which is unnecessary in this situation.

Vorherrschende Sprache
TypeScript
Sterne
23
Forks
9
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus ml-opensource/admin-panel-template-reactjs

Alle Issues in ml-opensource/admin-panel-template-reactjs

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.