The only way I can get onEvents to be fired is by using v3 beta (but the returned events is empty Array (using cache-dexie or not)
const subscription = ndk.subscribe(
{ kinds: [1] },
{
closeOnEose: true,
},
{
onEose: () => console.log("End of stream"),
onEvent: (event) => console.log("onEvent", event),
onEvents: (events) =>
console.log("onEvents - never gets called", events.length),
}
);
The only way I can get onEvents to be fired is by using v3 beta (but the returned
eventsis empty Array (using cache-dexie or not)https://codesandbox.io/p/sandbox/unruffled-sound-8hn568