Closed marshallswain closed 1 year ago
This is a complete refactor which includes the following:
useService
__tempId
instance.__isTemp
params.eager
useBaseModel
store
setStore
itemsById
items
itemIds
tempsById
temps
tempIds
clonesById
clones
cloneIds
useFeathersInstance
wrapModelFeathers
useFeathersModel
useFind
useGet
associateFind
associateGet
useClone
useClones
The defineStore utility will be deprecated once this PR is complete.
defineStore
6451e32
View logs
This is a complete refactor which includes the following:
useService
Composition API stores.Breaking Changes to Document
__tempId
after saving. Now,instance.__isTemp
(or having an idField) is the only reliable way to verify temp status.params.eager
for patch requests. (turns off eager updates).Remaining Tests
useBaseModel
adds basic Model properties which appear in Intellisensestore
setStore
itemsById
items
itemIds
tempsById
temps
tempIds
clonesById
clones
cloneIds
useBaseModel
withuseFeathersInstance
wrapModelFeathers
adds find, etc to the ModelFnuseFeathersModel
proxies store methods through the storeuseFind
support ModelFnsuseGet
support ModelFnsassociateFind
support ModelFnsassociateGet
support ModelFnsuseClone
support ModelFnsuseClones
support ModelFnsThe
defineStore
utility will be deprecated once this PR is complete.