Fix settings hydration
All checks were successful
CI / lint-check-build (pull_request) Successful in 3m23s
All checks were successful
CI / lint-check-build (pull_request) Successful in 3m23s
This commit is contained in:
parent
b90a20424e
commit
63cf801ef1
1 changed files with 11 additions and 0 deletions
|
|
@ -148,6 +148,17 @@
|
|||
|
||||
let loading = $state(false)
|
||||
let settings = $state(buildSettings())
|
||||
let settingsHydrated = $state(false)
|
||||
|
||||
$effect(() => {
|
||||
if (settingsHydrated) return
|
||||
|
||||
const {email, emailAddress} = $userSettingsValues
|
||||
if (!email && !emailAddress) return
|
||||
|
||||
settingsHydrated = true
|
||||
settings = buildSettings()
|
||||
})
|
||||
</script>
|
||||
|
||||
<form {onsubmit}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue