Skip to content

Commit

Permalink
fix: add rune $state to PageTitle.svelte (#215)
Browse files Browse the repository at this point in the history
fix pageTitle not being shown/udpated
  • Loading branch information
SeyyedKhandon committed Jan 27, 2024
1 parent dadc9ed commit 59715a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/3-lifecycle/1-on-mount/svelte5/PageTitle.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script>
let pageTitle = "";
let pageTitle = $state("");
$effect(() => {
pageTitle = document.title;
});
Expand Down

0 comments on commit 59715a7

Please sign in to comment.