Hey, I’m trying to use useMoralisSubscription to get when an event is created in my frontend. So that based on the content of that event I can do different things e.g dispatch notification. For now, i’m trying to access the raw data by console logging. The subscription doesnt seem to be firing. Any help?
useMoralisSubscription("PlayedEvent", (q) => q, [], {
onUpdate: (data) => console.log(data),
});