Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match route before init stores #698

Merged
merged 1 commit into from
Jun 12, 2019
Merged

Conversation

tornqvist
Copy link
Member

This adds back the changes made in #695 ensuring that href, query, params etc. are in the state before the stores are initialized.

@tornqvist tornqvist mentioned this pull request Jun 8, 2019
6 tasks
@bcomnes
Copy link
Collaborator

bcomnes commented Jun 12, 2019

Is this a breaking change?

@tornqvist
Copy link
Member Author

tornqvist commented Jun 12, 2019

It could be, if a store is checking for these properties in state to determine if it has been initialized before or not. Also, in combination with #649 these properties will always be in state on initialization, as opposed to only after the first call toString.

@yoshuawuyts mentioned on IRC that the init order has been switched around before, but not as a breaking change and apparently it caused issues for some people.

@tornqvist tornqvist merged commit a871818 into choojs:master Jun 12, 2019
@tornqvist tornqvist deleted the init-order branch June 12, 2019 11:42
tornqvist added a commit to tornqvist/choo that referenced this pull request Jun 12, 2019
* master:
  Match route before init stores (choojs#698)
  more timings (choojs#578)
  Disable hash routing by default (choojs#699)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants