choojs / choo

:steam_locomotive::train: - sturdy 4kb frontend framework
https://choo.io/
MIT License
6.78k stars 595 forks source link

Fix location missing on store init #695

Closed tornqvist closed 5 years ago

tornqvist commented 5 years ago

Location meta data was missing on store init during SSR, meaning href, query, route and params was missing from state when initializing stores.

This fixes that by running _matchRoute before initializing stores during SSR.

tornqvist commented 5 years ago

v6.13.2 🎉