From 89b0b1834d91332b220f8de2cf35d117c917ee73 Mon Sep 17 00:00:00 2001 From: 7nik Date: Sun, 3 Mar 2024 02:56:07 +0200 Subject: [PATCH] fix(content): fix svelte 5 on-mount (#206) `$effect` runs after the component gets mounted and rendered, but `pageTitle` isn't reactive. Thus, the page won't re-render with the new value. For this logic, it's better to use `$effert.pre` - it runs before mounting and the first rendering. But as the example concerns the on-mount event, it's better to make `pageTitle` reactive.