I want to refetch and set the inital data of an useState
Hello guys,
currently i am retrieving the data i use in useState with SSRSSR, but i want to use somethinng that makes it possible to update the useState on interactions from the user. Im guessing I should use useQueryuseQuery?
How can i set it so initialData in my useState works. this is my current useState line:
const [items, setItems] = useState(cat.CatImage);
const [items, setItems] = useState(cat.CatImage);
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
t
tRPC
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.