You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the browser mode single page application working fine as exptected
but when we try to run the same app which is build / compiled for ssr support its fail at {#if currentRoute.layout.viewed == false}
for the solution for this i changed the code in Router.svelte
Router.svelte
import { activeRoute } from './../store.js';
//some function here which is updated the store $activeRoute
const unsubscribe = activeRoute.subscribe(value => {
currentRoute = value;
});
<Route currentRoute={currentRoute} />
and instead of $activeRoute now i am passing currentRoute
so i dont know its error or we cant not use direct $store into as prop but think to just report in case.
thanks
The text was updated successfully, but these errors were encountered:
Describe the bug
store.js
Router.svelte
Route.svelte
in the browser mode single page application working fine as exptected
but when we try to run the same app which is build / compiled for ssr support its fail at
{#if currentRoute.layout.viewed == false}
for the solution for this i changed the code in Router.svelte
Router.svelte
and instead of $activeRoute now i am passing currentRoute
so i dont know its error or we cant not use direct $store into as prop but think to just report in case.
thanks
The text was updated successfully, but these errors were encountered: