OpenVAA / voting-advice-application

An open-source platform for creating Voting Advice Applications (VAAs)
https://demo.openvaa.org/
GNU General Public License v3.0
8 stars 0 forks source link

refactor: make navigation.getRoute SSR compatible #502

Open kaljarv opened 1 month ago

kaljarv commented 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.

Figure out a way to make it universally usable.

kaljarv commented 2 weeks ago

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.