0.16.0 • Published 9 months ago
@daaku/kombat-firestore-proxy v0.16.0
kombat-firestore-proxy
Kombat based Firebase backed synchronized offline first persistent object. Sometimes you just want objects and dictionaries and have them magically be synchronized.
Implementation
This works by providing a Proxy object which lazily creates datasets & rows as you access them. This has some implications on the API.
- Reading datasets & rows almost always succeeds. Only time a row will be
undefinedis if it once existed and then was deleted (that is, thetombstoneproperty is set totrue). - Writing datasets & rows follows the same rules, except a logged in user must be present.
- To check if a row with a given ID does in fact exist, use the
inoperator. This will only return true the row exists.