'SSR doesn't seem to work with conditional rendering with Store
/lib/store/store.js
import { writable } from 'svelte/store'
export const store = writable({ show: true ))
/route/index.svelte
<script>
import { store } from '$lib/stores/store'
</script>
{#if $store.show}
<div class="view">
My conditional elements
</div>
{/if}
SSR stops working with conditional rendering with store. Is this a supposed behavior? Or am I doing something wrong?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
