You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<scriptlang="ts">
import {siteUrl} from '$lib/config'
import type {ProductData} from '$lib/interface'
import urls from '$lib/urls'
export let data: any
let product: ProductData = data.product
let products: ProductData[] = data.products
</script><divclass="pb-16 sm:pb-24 lg:pt-6"><div>{product.title}</div>{#eachproductsasitem}<ahref={siteUrl+urls.products+item.identifier}>
some product 1
</a>{/each}</div>// the link hrefs look like this http://localhost:1144/products/camera-nest-2024
when I click the link(anchor tag), the browser address bar did change to the whatever url I clicked, but the load function doesn't run/rerun. therefore no new data loaded.
I would recommend providing a proper reproduction as requested by the issue template:
A link to a repository, or a fork of https://node.new/sveltekit, that reproduces the issue. Reproductions must be short, self-contained and correct and must not contain files or code that aren't relevant to the issue — please do NOT just paste a link to your project. Explaining how to reproduce is generally not enough. It pushes the burden of creating a reproduction project onto a small set of volunteer maintainers and isn't scalable. If no reproduction is provided, the issue will be closed.A link to a repository, or a fork of https://node.new/sveltekit, that reproduces the issue. Reproductions must be short, self-contained and correct and must not contain files or code that aren't relevant to the issue — please do NOT just paste a link to your project. Explaining how to reproduce is generally not enough. It pushes the burden of creating a reproduction project onto a small set of volunteer maintainers and isn't scalable. If no reproduction is provided, the issue will be closed.
Describe the bug
Load function isn't being rerun when I navigate to the same url with different id parameter
Reproduction
folder structure
+page.server.ts
+page.svelte , url of page is like this http://localhost:1144/products/doctor-phone
when I click the link(anchor tag), the browser address bar did change to the whatever url I clicked, but the load function doesn't run/rerun. therefore no new data loaded.
Logs
No response
System Info
Severity
blocking all usage of SvelteKit
Additional Information
No response
The text was updated successfully, but these errors were encountered: