Closed ismi-abbas closed 1 year ago
I think searching that invoke trpc each time is bad. Maybe use basic filtering all the surau data based on inputs. Therefore we're less dependent on db.
trpc useContext tanStack queryClient - trpc useContext() wrapper.
Caching could be another way around. Or useContext() function from trpc. Open for suggestion
We can try and implement this, I like the idea of using built in caching mechanism
I think searching that invoke trpc each time is bad. Maybe use basic filtering all the surau data based on inputs. Therefore we're less dependent on db.
trpc useContext tanStack queryClient - trpc useContext() wrapper.
Caching could be another way around. Or useContext() function from trpc. Open for suggestion