Open samya-ak opened 2 months ago
Ended up using separate NovuProvider
for each useFetchNotifications
for now.
Only downside I see is not being able to take advantage of caching and context since I'm conditionally rendering the providers.
Open to better suggestions : )
I'm submitting a...
Summary I'm trying to fetch all notifications and only unread notifications separately. I'm doing something like
I believe
useInfiniteQuery
underneathuseFetchNotifications
is usinginfinite_notifications
asqueryKey
for both requests. Hence, returning the same cached notifications. I was wondering if there's a way to modify thequeryKey
for each request to fetch all notifications and unread notifications in separate requests.Thanks!