Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 22 10:26
    tongtwist edited #801
  • Aug 22 10:25
    tongtwist edited #801
  • Aug 21 08:47
    tongtwist edited #801
  • Aug 20 19:34
    tongtwist opened #801
  • Aug 19 17:43

    amark on master

    Fix css for chat and todo apps Merge pull request #798 from sh… (compare)

  • Aug 19 17:43
    amark closed #798
  • Aug 19 17:43
    amark commented #798
  • Aug 19 12:24
    sayem314 opened #800
  • Aug 19 12:21
    taylordwright44 opened #799
  • Aug 19 10:48
    shamsartem synchronize #798
  • Aug 19 10:44
    shamsartem opened #798
  • Aug 17 21:58
    34r7h commented #797
  • Aug 17 21:57
    34r7h commented #797
  • Aug 17 21:44
    amark commented #795
  • Aug 17 21:38
    amark commented #797
  • Aug 17 21:29
    34r7h opened #797
  • Aug 17 21:11
    34r7h commented #768
  • Aug 17 20:27
    steve-vincent commented #757
  • Aug 17 20:26
    steve-vincent commented #757
  • Aug 17 20:26
    steve-vincent commented #757
Jachen Duschletta
@Dletta
@ThinkingJoules Have you tried wrapping it in a custom promise vs using .then? I just started using async a lot, but haven’t done a lot of calls (but expecting to)
Julian Stahl
@ThinkingJoules
@Dletta No, I didn't. That might work. I didn't spend a lot of time on it since I wanted to stream data anyway so I moved on to other structures.
Jachen Duschletta
@Dletta
No problem, just wondering
Julian Stahl
@ThinkingJoules
I don't know if I was running in to .then() issues or something with promises themselves.
Dylan Steck
@dylsteck
can i use .set on multiple chains
I'm trying to do the following and it's not working properly:
const newTab = db.get(newName).put(tab); db.get('actions').get(newName).get('tabs').set(tab);
i have a list of actions and i want to create a list of tabs within each action
Jachen Duschletta
@Dletta
That should work...
Dylan Steck
@dylsteck
Yeah, right? I'm a bit confused
It's just adding that data to the action
when I print out each action, it should give me something like this: 0: {name: "name", created_at: date, tabs: [{}, {}] }
Lightnet
@Lightnet
@dylsteck mis match setup
set(tab); this will gen new id of map list
Dylan Steck
@dylsteck
so then how do i fix this
would i not use set @Lightnet
Lightnet
@Lightnet
writing test script example
Dylan Steck
@dylsteck
ok
Lightnet
@Lightnet
you wanted to create a list ? .get('tabs').set(tab);
Dylan Steck
@dylsteck
i want to create a list within an item
I have a list of actions and i want to create a list of tabs inside of each action
Lightnet
@Lightnet
then it fine I to used set()
but the tabs are independent or create single graph?
Dylan Steck
@dylsteck
each tab is independent
so if it were normal js itd be like this: action: {name: "Name", tabs: [{}, {}, {}] }
Lightnet
@Lightnet
note the tab will turn into uuid for tabs: [{}, {}, {}]
Dylan Steck
@dylsteck
ah that's right
can i pm you my code real quick? it's like 20 lines
Lightnet
@Lightnet
sure
Jachen Duschletta
@Dletta
Did it work out @dylsteck @Lightnet ?
Dylan Steck
@dylsteck
not yet
@Lightnet is saying something about me not being able to pass an object through .set like I am, but i don't think that is the issue
Dylan Steck
@dylsteck
me and @Lightnet haven't been able to fix this issue. i am building a chrome extension and trying to create a list of objects within another list using .set() and my code isn't working
Lightnet
@Lightnet
@dylsteck did you check this https://developer.chrome.com/extensions/storage not sure is relation to gun but storage
Dylan Steck
@dylsteck
when you use gun like this it just saves it in localStorage
that can't be the issue because other stuff has been saving to gun
Lightnet
@Lightnet
k
Dylan Steck
@dylsteck
its just this one thing that isn't saving and all of the code looks fully correct so i have no idea why this error is occuring
but also ive been on it for 7 hours straight so i must be missing something!
Jachen Duschletta
@Dletta
Odd, use newTab receference returned from put and use that to set
Dylan Steck
@dylsteck
that's what i've been doing @Dletta
Jachen Duschletta
@Dletta
I can look at it in a few hours
Rob
@rm-rf-etc
Isn't GUN an acronym? I can't remember what it stands for.
Graph Universal Network?
Lightnet
@Lightnet
@dylsteck found it there was another chrome ext https://github.com/eraeco/party.lol forgot about it
Dylan Steck
@dylsteck
@Rob I think you’re correct
@Lightnet I’ll take a look into that — btw my extension is in React
Lightnet
@Lightnet
k
Dylan Steck
@dylsteck
@Dletta thank you