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

Fix redirect on an application load #868

Merged
merged 4 commits into from
Dec 2, 2020

Conversation

agubler
Copy link
Member

@agubler agubler commented Dec 2, 2020

Type: bug

The following has been addressed in the PR:

Description:

For redirecting on application load the router needs to make sure the history manager instance is set before processing the initial path in case it requires a redirect (which needs the history instance).

This is breaking as it requires introducing a "start" function to the history managers.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Dec 2, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8a93efa:

Sandbox Source
dojo/dojo-codesandbox-template Configuration

@codecov
Copy link

codecov bot commented Dec 2, 2020

Codecov Report

Merging #868 (8a93efa) into master (861eeda) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #868   +/-   ##
=======================================
  Coverage   94.73%   94.73%           
=======================================
  Files         127      127           
  Lines        8104     8116   +12     
  Branches     1892     1893    +1     
=======================================
+ Hits         7677     7689   +12     
  Misses        427      427           
Impacted Files Coverage Δ
src/routing/Router.ts 100.00% <100.00%> (ø)
src/routing/history/HashHistory.ts 100.00% <100.00%> (ø)
src/routing/history/MemoryHistory.ts 100.00% <100.00%> (ø)
src/routing/history/StateHistory.ts 98.00% <100.00%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a6c28bb...8a93efa. Read the comment docs.

@agubler agubler merged commit ac95d35 into dojo:master Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants