agile-ts / agile

🌌 Global State and Logic Library for JavaScript/Typescript applications

Home Page:https://agile-ts.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Outsource Collection into a separate package

bennoinbeta opened this issue Β· comments

commented

πŸ†• Feature Request

❓ Is your feature request related to a problem?

Big bundle size 🐘

πŸ“„ Describe the solution you'd like

I would like to install the Collection as a separate package when I really need it.

πŸ“ƒ Describe alternatives you've considered

Life with a larger bundle size, although I don't need the Collection feature.

commented

🟩 Pros

  • smaller bundle size
  • more encapsulation

πŸŸ₯ Cons

  • No Collection type safety in integrations like React (useAgile())
  • No way to offer a type safe App.createCollection()
commented

Still considerable, but for now the Collection can be tree shaken away
See: #186