ยฉ 2026 Hedgehog Software, LLC
export default function ArticleDetail() { const [article] = createResource(useParams().id, fetchArticle); createEffect(() => { if (article()) console.log("params.id ", useParams().id); }); createEffect(() => { if (article()) console.log("Finished loading ", article()!.title); });
params.id
createResource
fetchArticle()
t will be called again whenever the value of sourceSignal changes, and that value will always be passed to fetchData as its first argument.