Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

prevent sidebar from re-rendering

Aperta
#1,197 4 commenti 1 reazione 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 8 giorni

@trusktr ci sta già lavorando.

Dal 25/5/2020.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement needs discussion PoC welcome

Feature request

Each time we navigate, if the sidebar menu item expands, the whole sidebar re-renders (sidebar DOM is replaced with a new one)

What problem does this feature solve?

This would make it easier to attach logic onto DOM elements without the being destroyed.

What does the proposed API look like?

We should render all menu items with all their child items, but all collapsed. We can then open/close them to reveal the children. This is better than re-rendering the whole sidebar in order to add/remove the child content.

How should this be implemented in your opinion?

We can use a pure CSS tree view (similar to the ones I linked in https://github.com/docsifyjs/docsify/issues/1180)

Are you willing to work on this yourself?

Yeah

Lingua principale
JavaScript
Stelle
31.6k
Fork
5.8k
Merge medio
7g 18h
PR unite (30g)
9

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di docsifyjs/docsify

Tutte le issue di docsifyjs/docsify

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.