alloc / alloc/saus

Unmountable global state provided by routes

Offen
#60 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
proposal runtime
Vorherrschende Sprache
TypeScript
Sterne
38
Forks
1
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Routes could provide global state (avoiding the need for prop drilling) that can be unmounted by the client router whenever a page is primed for garbage collection.

### Possible API
- pass state modules to `global` option of `route` declaration
- add a `release` client-side method to state modules?
- add a client-side function for releasing all state modules used by a specific page module

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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