You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe useInfiniteQuery underneath useFetchNotifications is using infinite_notifications as queryKey for both requests. Hence, returning the same cached notifications. I was wondering if there's a way to modify the queryKey for each request to fetch all notifications and unread notifications in separate requests.
Thanks!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: