gun icon indicating copy to clipboard operation
gun copied to clipboard

.then() and promise crashing out

Open julesl23 opened this issue 3 years ago • 3 comments

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 .

julesl23 avatar Jan 19 '22 18:01 julesl23

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).

amark avatar Feb 19 '22 06:02 amark

I have the same issue with the latest version.

fitouch avatar Jun 04 '22 19:06 fitouch

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

fitouch avatar Jun 04 '22 20:06 fitouch