Skip to content

📜 Page operation model (in memory) with LRU & lifecycle strategy

License

Notifications You must be signed in to change notification settings

qddegtya/llpage

Repository files navigation


llpage


🚀 page operation model (in memory) with LRU & lifecycle strategy.

All Contributors Coverage Status npm Known Vulnerabilities

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 📦 out-of-box micro-frontends solution view

Contributors

Thanks goes to these wonderful people (emoji key):

Archer (炽宇)
Archer (炽宇)

💻 🚇 🚧 🎨 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

About

📜 Page operation model (in memory) with LRU & lifecycle strategy

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published