alloc / alloc/saus

Unmountable global state provided by routes

未關閉
#60 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
proposal runtime
主要語言
TypeScript
星號
38
分支
1
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。