nsarrazin commited on
Commit
e1c53b8
·
1 Parent(s): 48059af

fix: update config before dom update

Browse files
Files changed (1) hide show
  1. src/routes/+layout.svelte +2 -2
src/routes/+layout.svelte CHANGED
@@ -181,8 +181,8 @@
181
  !($page.data.shared === true)
182
  );
183
 
184
- $effect(() => {
185
- () => publicConfig.init(data.publicConfig);
186
  });
187
 
188
  onMount(() => {
 
181
  !($page.data.shared === true)
182
  );
183
 
184
+ $effect.pre(() => {
185
+ publicConfig.init(data.publicConfig);
186
  });
187
 
188
  onMount(() => {