llpage
v1.1.5
Published
page operation model with LRU & lifecycle strategy.
Downloads
18
Readme
🚀 page operation model (in memory) with LRU & lifecycle strategy.
Install
$ npm install llpage
Feature
- ⚙️ Support
keep-alive
in memory(LRU) - 🚀 High-Performance page operator with Doubly Linked List(DLL)
- 💗 Elegant api such as
open
/close
/closeAll
/refresh
/closeOthers
- 👀 reactive inside
- 📱 Support page lifecyle (sync/async)
Example
import { createLLPageManager, createPage } from 'llpage'
const testPage = createPage({
data: {},
async onCreate() {
await xx()
}
async onStart() {
await xx()
}
})
const ll = createLLPageManager({
size: 10
})
////////// some page op //////////
ll.open(testPage)
ll.close(testPage)
ll.closeOthers(testPage)
ll.closeAll()
Real-World Example
|name|description|homepage| |:--|:--|:--| |example|simple examples inside this repo|view|
Awesome list
|name|description|homepage| |:--|:--|:--| |rice|🚧micro-frontends framework based on llpage & react|view|
Contributors
Thanks goes to these wonderful people (emoji key):
| Archer (炽宇)💻 🚇 🚧 🎨 📖 | | :---: |
This project follows the all-contributors specification. Contributions of any kind welcome!