zeph1665
zeph1665
TtRPC
Created by zeph1665 on 4/13/2023 in #❓-help
web socket keeps on disconnecting and connecting
You can checkout this youtube video: https://www.youtube.com/watch?v=Dw4vF2nftAE Jump to the 10min mark
6 replies
TtRPC
Created by zeph1665 on 4/13/2023 in #❓-help
web socket keeps on disconnecting and connecting
I see! In that case, I'll just try using Pusher instead. Thank you!
6 replies
TtRPC
Created by zeph1665 on 11/24/2022 in #❓-help
Clearing Cache
Alright! Thanks so much for your patience and help!(: Really appreciate it!
16 replies
TtRPC
Created by zeph1665 on 11/24/2022 in #❓-help
Clearing Cache
oh, I actually want to invalidate the entire liked_place cache, not just the first 5.
16 replies
TtRPC
Created by zeph1665 on 11/24/2022 in #❓-help
Clearing Cache
currently my keys look like this: [["liked_place","infiniteList"],{"folderId":"7218f699-78a8-4524-b15e-9a6c13e80af5","limit":5,"userId":"13dbca38-063d-4df7-bd1f-72908d1332fe"}] and the user has several folders. So I just want to clear the entire cache for [liked_place, infinitelist]
16 replies
TtRPC
Created by zeph1665 on 11/24/2022 in #❓-help
Clearing Cache
Actually, do I have to be more granular? I do want to clear the cache for all liked_place infinite queries.
16 replies
TtRPC
Created by zeph1665 on 11/24/2022 in #❓-help
Clearing Cache
I see! Let me give that a shot! Thank you🤗
16 replies
TtRPC
Created by zeph1665 on 11/24/2022 in #❓-help
Clearing Cache
I did the following:
const utils = trpc.useContext()
utils.liked_place.infiniteList.invalidate()
const utils = trpc.useContext()
utils.liked_place.infiniteList.invalidate()
16 replies
TtRPC
Created by zeph1665 on 11/24/2022 in #❓-help
Clearing Cache
But when I used invalidate queries, it seems to refetch all the results that were initially loaded. i.e. if the user loaded 15 results, the refetch would refetch all 15 results which is not what I wanted.
16 replies
TtRPC
Created by zeph1665 on 11/24/2022 in #❓-help
Clearing Cache
Oh I forgot to mention that I would like to clear the cache for an infinite query such that when the user queries for it again, it starts from scratch e.g. just the first 5 results.
16 replies
TtRPC
Created by zeph1665 on 10/28/2022 in #❓-help
Query keys
Oh.. totally missed this part of the docs! Thanks so much!
10 replies
TtRPC
Created by zeph1665 on 10/28/2022 in #❓-help
Query keys
Thank you! Just to clarify, if i wanted to invalidate the queries, I would do this?
queryClient.invalidateQueries(['itinerary', 'list', {where: {userId: x}}
])
queryClient.invalidateQueries(['itinerary', 'list', {where: {userId: x}}
])
10 replies