amark / gun

An open source cybersecurity protocol for syncing decentralized graph data.
https://gun.eco/docs
Other
18.05k stars 1.16k forks source link

.then() and promise crashing out #1192

Open julesl23 opened 2 years ago

julesl23 commented 2 years ago

Hi, I have an example html that sets up a simple graph. When using the .then() or a Promise equivalent (also included to try, uncomment), Gun is crashing out and not executing any lines after.

Please find html attached with the problem index.zip .

amark commented 2 years ago

Technically promises aren't supported (tho working on improved support in fuure). Does it fail with callbacks? If not, please wrap your own promise around that, until official promise support (which would do the same thing anyways).

fitouch commented 2 years ago

I have the same issue with the latest version.

fitouch commented 2 years ago

I got it working again after I put null in the node where it stopped executing any lines after. It's weird.