-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Navigation to dynamic routes does not work properly #640
Comments
@euglv thanks for filing this. @EisenbergEffect please help move this to Router. @davismj This case falls into |
On a second thought, from the look of the code, what has been changed is @davismj @fkleuver @EisenbergEffect What do we do in case of only query params change? Do we have any similar issues? |
@euglv you can add a method |
@bigopon Adding But I have solved the issue by changing
Here is updated gist with working sample: When |
@euglv have a look at this article and let me know if this seems like it has a solution for you |
Duplicate of #289 ? |
@davismj Hi, thank you for help. I already found the solution: inside |
I'm submitting a bug report
1.3.0
Please tell us about your environment:
Operating System:
Windows [10]
Node Version:
8.11.2
6.9.0
CLI 1.0.0-beta.7
Browser:
Chrome
Language:
ESNext
Current behavior:
Documentation states that it is possible to configure
moduleId
usingnavigationStrategy
function.But framework does not respect changes of
instruction.config.moduleId
whennavigationStrategy
function is called second time.Expected/desired behavior:
Framework should watch
moduleId
changes afternavigationStrategy
function is called.I am trying to display different module when
key
parameter is present in a query string.http://example.com/ - should display 'landing' module, but
http://example.com/?key=12345 should display 'search' module
Here is my router config:
Here is gist illustrating the problem: https://gist.run/?id=11d2f6926dc18f19fd9f7dd9f910bbcf
If I run the above sample locally (not using gist) - I can see that line
this.router.navigateToRoute('home', {key: Math.random()});
changes the browser URL, but does not reload current module. If I open this new url in a new tab - I will see the correctseach
module.The text was updated successfully, but these errors were encountered: