-
-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Describe the bug
<script>
import { getCount } from './data.remote';
import { queryParameters, ssp } from 'sveltekit-search-params';
// this works
let nonSSP = $state({
brand: 'audi',
model: 'a1'
})
let nonSSPCountQuery = $derived(getCount(nonSSP))
// this does not work
const search = queryParameters({
brand: ssp.string(),
model: ssp.string()
})
let params = $derived(search)
let countQuery = $derived(getCount(params))
// but this works
let countQueryWithDirectDependency = $derived(getCount(params.brand))
</script>I have also tried
let params = $derived(queryParameters({
brand: ssp.string(),
model: ssp.string()
}))Reproduction
https://www.sveltelab.dev/llrpqk8ytk63060
Logs
Metadata
Metadata
Assignees
Labels
No labels