pandeyman
pandeyman
TTCTheo's Typesafe Cult
Created by Alefe Bispo - BRT on 6/9/2023 in #questions
Which content creator offers the best material to learn Nextjs?
While videos are a great learning resource, nothing beats the feeling that you get when you solve problems and learn while making something on your own, just start making a project while following the next.js docs and google your way to success!
8 replies
TTCTheo's Typesafe Cult
Created by pandeyman on 2/7/2023 in #questions
Proper way to handle a protected route with react-query
I didn't wanna disable refetch on window focus, so I checked for the status of the query. If the query is in the "loading" state, I'm not redirecting the user and it works as expected. Thanks for answering the question though!
3 replies
TTCTheo's Typesafe Cult
Created by yaviscoke on 2/6/2023 in #questions
Why useQuery runs multiple times?
yeah it works this way for every browser
9 replies
TTCTheo's Typesafe Cult
Created by f2bear on 2/6/2023 in #questions
Problems with useQuery.onSuccess()
THIS, plus you can go over this blog post for more details on why copying server state is not a good idea https://tkdodo.eu/blog/practical-react-query
18 replies
TTCTheo's Typesafe Cult
Created by f2bear on 2/6/2023 in #questions
Problems with useQuery.onSuccess()
copying your server state to the client on onSuccess is not really a good idea, you should directly map over the data that query returns, you can check for loading state and show a loader while its loading for example.
18 replies