amark on master
subscribe only on backpropagati… Merge branch 'master' of http:/… PANIC 4: AXE get subscriptions (compare)
amark on master
Panic tests for rod & radix.js … (compare)
amark on master
reduce not-found acks if via/re… test undo tmp (compare)
[D]anoxy: <@178314946201780224> thanks it is hard to not help when there are great people in here helping me out :) I really love this community!
<@648558515463651338> I really hope that your becomes healthy one day. As I wrote earlier they to raise the dogs pH-level . It is because of low pH levels animals and humans gets cancer
indented goal
is to build the gunfs plugin
(for personal use), this works for me as im notis C9 saving files to GUN, or C9 loaded out of GUN?
so currently, c9 is saving files in gun, now the real next thing for me is to create a package manager for peerApps
, when i have a package-manager done,, i can then pack cloud9+gun into a package,
1. `someData1 = {name: 'Title', tag: 'my tag'}`
2. `user.get('notes').get('category').get(nodeKey).put(someData1)`
then I delete that data with:
3. `user.get('notes').get('category').get(nodeKey).put(null)`
the `nodeKey` will still be there, but if I choose to delete the `nodeKey` itself by using
4. `user.get('notes').get('category').put(null)`
is all the data belonging to that nodeKey also delete?
Lets assume that I delete the `nodeKey`, and later on I add some data to the same nodeKey:
5. `someData2 = {describe: 'Some description', where: 'here :) '}`
6. `user.get('notes').get('category').get(nodeKey).put(someData2)`
will anything from the old data (`someData1`) be shown after step `6` ?
In other words will the `name` and `tag` words still be there even though I deleted it according to step `3`?
// add object with multiple keys
user.get("notes").get(key).put({ name, tag })
// delete single key/value from object
let document;
user.get("notes").get(key).once(data => (document = data))
delete document["tags"]
user.get("notes").get(key).put(null).put(document)
[D]anoxy: basically I add data to a node with:user.get('notes').get('category').get(Gun.time.is()).put(objectData);
and I delete all the data with:user.get('notes').get('category').put(null);
this works without any problems.... BUT I cannot add more data to that node again after setting it to null
so if I do this again:user.get('notes').get('category').get(Gun.time.is()).put(objectData);
the data isnt added at all even though I cannot see the result of the object in the Console
user.get('notes').get('category').put(null);
doesnt work
var $gk = {};
$gk[Gun.time.is()] = objectData;
user.get('notes').get('category').put($gk)
[D]anoxy: <@280426612900757504> by re-init do you mean: get back the node data ?
<@612728945313316904> so in other words, if I put null on a node for ie in my case if I do null on category
by get('category')
then only the node itself gets nulled, any other data or keyNodes which belongs to that node will still be present in the root right ?
data
and nodeKeys
which belongs to a node
m
put(someData)
in a node which has been nulled
?
put(someData)
in anulled
node.
[D]anoxy: How is that done in a smooth way ?
And yeah null only deletes the references I got that part, but why cannot I add new references to the nulled node ? This can be seen here
https://jsbin.com/rorezebaho/edit?html,js,console,output
Create a user and login, add some categories, and then delete the node. And try to add new categories. It just doesn't work. <@280426612900757504> sent some code to make it works but I think it should still be possible to give new references to a nulled node with put
var testing = null
and do testing.something = "hello"
it fails