You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When asynchronously updating deeply nested data in gun, the updates won't propagate, and nothing will get the new data (including the underlying data stores).
It's an oddly specific bug, though...
updates must be at nested at least three layers deep, or gun will notice
it must be asynchronous, or else gun will get the update
Here's something that could be adapted to a jasmine/mocha test case:
// object nested three layers deep// must be at least three layersvarobj={1: {1: {data: false}}}// define gun and place the deep objectgun=Gun().get('deep change').put(obj)// listen for changesgun.path('1.1.data').on(function(data){if(data){// gun will never receive the "true" update}})// asynchronously set data// synchronous deviations will succeedsetTimeout(function(){obj[1][1].data=truegun.put(obj)},50)
The text was updated successfully, but these errors were encountered:
When asynchronously updating deeply nested data in gun, the updates won't propagate, and nothing will get the new data (including the underlying data stores).
It's an oddly specific bug, though...
Here's something that could be adapted to a jasmine/mocha test case:
The text was updated successfully, but these errors were encountered: