hooked-collections

0.0.6 • Public • Published

Hooked Collections

Frontend record collections with REST-ful Hooks based API.

API

// Get collection of users.
useCollection('users');

// Get user record with id 12.
useRecord('users', 12);

Vision

Backend syncing

Records not available in the frontend will be fetched and cached.

Newly created/edited records will be persisted to the backend.

Persistence state of records will be tracked:

  • new
  • creating
  • created
  • editing
  • updating
  • updated
  • deleting
  • deleted

Readme

Keywords

none

Package Sidebar

Install

npm i hooked-collections

Weekly Downloads

1

Version

0.0.6

License

MIT

Unpacked Size

31 kB

Total Files

32

Last publish

Collaborators

  • dibyo