Open kaljarv opened 1 month ago
The getRoute store currently uses the page store to get the current url, which creates an error if it's used in a module on SSR.
getRoute
page
Figure out a way to make it universally usable.
The Route enum can now be accessed in SSR, but getRoute is still not available. The route building logic should be separated from the CSR store, which only adds locale to the route if it's not speficied.
Route
locale
The
getRoute
store currently uses thepage
store to get the current url, which creates an error if it's used in a module on SSR.Figure out a way to make it universally usable.