- fix: updated from Store to Component: using Watch with 'immediate' parameters! @Watch('todos_changed', { immediate: true, deep: true })

- fix immediate only if you need to change something very quickly... otherwise it not need.
- fix: modified become FALSE when is sent, otherwise infinite loop...
This commit is contained in:
Paolo Arena
2019-02-03 19:28:06 +01:00
parent 602eb6bc20
commit 13a4a0ba90
8 changed files with 107 additions and 63 deletions

View File

@@ -1,6 +1,7 @@
import indexdb from './indexdb'
export default async (context, cmd, table, data, id = '') => {
console.log('globalroutines', cmd, table, data, id)
export default async (context, cmd, table, data = null, id = '') => {
const descr = data !== null ? data.descr : ''
console.log('globalroutines', cmd, table, descr, id)
return await indexdb(context, cmd, table, data, id)
}