you don't have to filter the events by yourself. just use a separate useSubscribe hook for each filter that you want.

use one hook for kind 0 for example and another for kind 3

the library will do the rest for you.

Reply to this note

Please Login to reply.

Discussion

Hm, I see your point, but what if I want to fetch a particular note? I still need to collect all the notes then select the one I want on my side?

aha, just attach that particular event id to 'ids' property like filters: {ids:['']} it's the basic of nostr explained in NIP01

Gotcha, thanks. I guess it means something broke with my dynamic routing then.