Skip to content
Snippets Groups Projects
Commit 1f954112 authored by Adam Procter's avatar Adam Procter
Browse files

Merge branch 'futurenogg' into main

parents 1fb54fb5 cfa31622
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,7 @@ export default {
added: {
deep: true,
handler() {
console.log('add happened')
setTimeout(this.loadData, 500)
},
},
......@@ -77,7 +78,9 @@ export default {
methods: {
loadData() {
console.log('loading data')
this.myArray = this.nodesFiltered
console.log(this.myArray)
this.$forceUpdate()
},
......
......@@ -131,6 +131,7 @@ export const actions = {
},
getNodes: ({ commit }, e) => {
console.log('getting nodes as you added one')
commit('GET_NODES', e)
},
......
......@@ -73,7 +73,7 @@ export const actions = {
// pouchdb = new PouchDB(lastmicrocosm)
// }
pouchdb.replicate.from(remote).on('complete', function () {
// GET_MYNODES from mynodes.js ACTION
// GET_MYNODES from myNodes.js ACTION
vuexContext.dispatch('getNodes', null, { root: true })
pouchdb
.sync(state.remoteAddress, {
......@@ -82,6 +82,7 @@ export const actions = {
retry: true,
})
.on('change', function () {
console.log('change happened')
vuexContext.dispatch('getNodes', null, { root: true })
})
.on('paused', function () {})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment