dan
dan
TTCTheo's Typesafe Cult
Created by GetPsyched on 9/28/2024 in #questions
Weird errors when using useQuery
im not sure if that would cause the rerender issue though :Thonkang:
29 replies
TTCTheo's Typesafe Cult
Created by GetPsyched on 9/28/2024 in #questions
Weird errors when using useQuery
setting the default on the useQuery like that wont work afaik, make another variable lile
const {data} = useQuery()
const renderData = data ?? [];
const {data} = useQuery()
const renderData = data ?? [];
29 replies
TTCTheo's Typesafe Cult
Created by GetPsyched on 9/28/2024 in #questions
Weird errors when using useQuery
and removing the useQuery stops that from happening?
29 replies
TTCTheo's Typesafe Cult
Created by GetPsyched on 9/28/2024 in #questions
Weird errors when using useQuery
once its stale it'll then refetch
29 replies
TTCTheo's Typesafe Cult
Created by GetPsyched on 9/28/2024 in #questions
Weird errors when using useQuery
yea because you're ssring and not throwing it doesnt refetch on the client after since you're hydrating with the servers cache on the client
29 replies
TTCTheo's Typesafe Cult
Created by GetPsyched on 9/28/2024 in #questions
Weird errors when using useQuery
this looks fine. can you send a compoentn that infa rerenders
29 replies
TTCTheo's Typesafe Cult
Created by Knox on 3/5/2024 in #questions
React query useInfiniteQuery (v3) and react table (v7) for server side pagination
There is an example on tanstack/table that might be useful to you https://tanstack.com/table/latest/docs/framework/react/examples/virtualized-infinite-scrolling
8 replies
TTCTheo's Typesafe Cult
Created by Zack on 12/29/2023 in #questions
Best alternative to next-auth for use with credentials
so discouraged you’re forced to use jwt authentication if you use passwords 😩
9 replies
TTCTheo's Typesafe Cult
Created by Knox on 12/20/2023 in #questions
Open id view content from Tanstack Table with Tanstack Router
41 replies
TTCTheo's Typesafe Cult
Created by Knox on 12/20/2023 in #questions
Open id view content from Tanstack Table with Tanstack Router
Ah ok im starting to remember bits now Basically how I have it setup is my "layout" router (in your case operationsRoute) is using a pathless route https://avrg.dev/d3SoG.png https://avrg.dev/AvfNv.png https://avrg.dev/yaC0d.png Atm you have every router defining a path, the route you want as the layout should have an Id instead of a path.
41 replies
TTCTheo's Typesafe Cult
Created by Knox on 12/20/2023 in #questions
Open id view content from Tanstack Table with Tanstack Router
Try installing the router devtools and see what routes are matching
41 replies
TTCTheo's Typesafe Cult
Created by Knox on 12/20/2023 in #questions
Open id view content from Tanstack Table with Tanstack Router
Not 100% sure but all mine are the full path, including the starting /
41 replies
TTCTheo's Typesafe Cult
Created by Knox on 12/20/2023 in #questions
Open id view content from Tanstack Table with Tanstack Router
it might be the paths actually
41 replies
TTCTheo's Typesafe Cult
Created by Knox on 12/20/2023 in #questions
Open id view content from Tanstack Table with Tanstack Router
idm, either works, up to you really
41 replies
TTCTheo's Typesafe Cult
Created by Knox on 12/20/2023 in #questions
Open id view content from Tanstack Table with Tanstack Router
multiple outlets is fine
41 replies
TTCTheo's Typesafe Cult
Created by Knox on 12/20/2023 in #questions
Open id view content from Tanstack Table with Tanstack Router
if you have a repo I can take a look, I do remember it being a bit finicky to setup the first time.
41 replies
TTCTheo's Typesafe Cult
Created by Knox on 12/20/2023 in #questions
Open id view content from Tanstack Table with Tanstack Router
AbbySalute
41 replies
TTCTheo's Typesafe Cult
Created by Knox on 12/20/2023 in #questions
Open id view content from Tanstack Table with Tanstack Router
oh uh try adding an index next to the dynamic route which would just be a default page when nothing is selected
41 replies
TTCTheo's Typesafe Cult
Created by Knox on 12/20/2023 in #questions
Open id view content from Tanstack Table with Tanstack Router
41 replies
TTCTheo's Typesafe Cult
Created by Knox on 12/20/2023 in #questions
Open id view content from Tanstack Table with Tanstack Router
on the rootRoute have you added the children (itemListIdRoute) to listItemsRoute?
41 replies