Will fire on event here users.map().on(user => console.log(user));
But it will not fire on events here alice.get('friends').map().on((friend, k) => console.log("Alice Friend", friend, k));
So it seems that deep is also related to the bug.
Now the working version of code would be like this:
This will fire users on event and alice friends on event, the difference is on GUN() "constructor" that will create default storage, on my case running node it will create radisk.
I have talked with @amark and he says its probably a bug, because Gun should be able to work with no storage so only in memory.
I have tested the code with node (v14.18.2), not sure if browser has the same behavior.
The following code:
Will fire on event here
users.map().on(user => console.log(user));
But it will not fire on events herealice.get('friends').map().on((friend, k) => console.log("Alice Friend", friend, k));
So it seems that deep is also related to the bug.
Now the working version of code would be like this:
This will fire users on event and alice friends on event, the difference is on GUN() "constructor" that will create default storage, on my case running node it will create radisk.
I have talked with @amark and he says its probably a bug, because Gun should be able to work with no storage so only in memory.