homebaseio / homebase-react

The React state management library for write-heavy applications
https://homebase.io/docs/homebase-react
MIT License
202 stars 10 forks source link

refactor(cache): improve cache and integrate reagent #107

Closed becomingbabyman closed 3 years ago

becomingbabyman commented 3 years ago

PR Description

The current homebase cache is not very composable and it's kind of hard to reason about.

The goal of this PR is to rewrite the cache to make it more readily support different view frameworks like (React or Reagent) and different DBs like (Datascript or Datahike).

PR Checklist

Testing

Docs

Typescript

Merging

For maintainers.

To merge, select "Squash and Merge". Then:

  1. Make sure the top commit message follows Angular Git Commit Guidelines,
  2. Delete all other commit messages in the description, but keep any lines designating co-authors so contributors will retain credit for their contributions.
vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

homebase-example-counter – ./examples/counter

πŸ” Inspect: https://vercel.com/homebaseio/homebase-example-counter/An1bN9p8nRoiYdCKmkZHyLZo2iNV
βœ… Preview: https://homebase-example-counter-git-cache-refactor-homebaseio.vercel.app

homebase-example-todo – ./examples/todo

πŸ” Inspect: https://vercel.com/homebaseio/homebase-example-todo/28tD14xC9A8CxYgE8vvv2MgysLV9
βœ… Preview: https://homebase-example-todo-git-cache-refactor-homebaseio.vercel.app

homebase-example-ts-firebase-todo – ./examples/typescript-firebase-todo

πŸ” Inspect: https://vercel.com/homebaseio/homebase-example-ts-firebase-todo/HysWZZWiU5TJdNMbUjniNmi8XLdT
βœ… Preview: https://homebase-example-ts-firebase-todo-git-cache-refactor-homebaseio.vercel.app

homebase-example-roam – ./examples/roam

πŸ” Inspect: https://vercel.com/homebaseio/homebase-example-roam/24NJAuWip8ACFeho6s7UmutoV32i
βœ… Preview: https://homebase-example-roam-git-cache-refactor-homebaseio.vercel.app