We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18bcd4c commit 6c5a948Copy full SHA for 6c5a948
app/dfda/components/VariableSearchAutocomplete.tsx
@@ -80,8 +80,12 @@ export default function VariableSearchAutocomplete({
80
setIsLoading(true)
81
try {
82
// Create a cache key based on search term and params
83
- const cacheKey = `dfda-variable-search:${searchTerm}:${JSON.stringify(searchParams)}`
84
-
+ const cacheKey = `dfda-variable-search:${searchTerm}:${
+ JSON.stringify(Object.keys(searchParams).sort().reduce((obj, key) => {
85
+ obj[key] = searchParams[key]
86
+ return obj
87
+ }, {}))
88
+ }`
89
// Check cache first
90
const cachedResults = getCachedResults(cacheKey)
91
if (cachedResults) {
0 commit comments