Greg
Greg
TTCTheo's Typesafe Cult
Created by Greg on 4/30/2023 in #questions
Is there a way to force data to update on a new page with t3 without having to click the page
Thanks I think that explained it since im using multiple tabs , the query is reloading(since it is now back in focus) as I shift back to the other page and click on it!
9 replies
TTCTheo's Typesafe Cult
Created by Greg on 4/30/2023 in #questions
Is there a way to force data to update on a new page with t3 without having to click the page
Im also guessing potentially just appending to the array of objects with [ newEntries ...prevEntries ] could work but I've been trying to do all the management strictly on the TRPC side (and i guess query.invalidate() leads to this sort of behavior)
9 replies
TTCTheo's Typesafe Cult
Created by Greg on 4/30/2023 in #questions
Is there a way to force data to update on a new page with t3 without having to click the page
For example on the chirp app Theo built if you were to open two tabs and click on a profile and then from the other create a new tweet, the profile wont update with the new tweet until the page is clicked on again . Why is that ?
9 replies