farhan-helmy / carisurau

https://carisurau.com
MIT License
66 stars 37 forks source link

Improve searching #26

Closed ismi-abbas closed 1 year ago

ismi-abbas commented 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

farhan-helmy commented 1 year ago

We can try and implement this, I like the idea of using built in caching mechanism