GH5T
2
Find out where you’re making all those searches.
Optimize your flow.
Ideally you want to search for your items once (load it in your page somewhere) then refer to that ‘loaded’ data. Otherwise you’re “re-searching” multiple times per load.
Same applies in hard-code:
<html>
<head>
<some awesome script that loads data>
</head>
<body>
<SessionProvider data={data}>
<content /> - here is where we can refer to that data at any point within context of the app.
</SessionProvider>
</body>
</html>
This is not a functional code, just an example.