X Tutup
The Wayback Machine - https://web.archive.org/web/20200628000732/https://github.com/angular/angular/issues/37709
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

queryParams and queryParamMap subscription not triggered when param has array with repeating values #37709

Open
dileepyelleti opened this issue Jun 24, 2020 · 0 comments
Labels
Milestone

Comments

@dileepyelleti
Copy link

@dileepyelleti dileepyelleti commented Jun 24, 2020

🐞 bug report

Affected Package

The issue is caused by package @angular/router

Is this a regression?

No

Description

When a query param has array initially containing a repeating value (ex: item: [4, 4, 2]) and after changing the repeating value (item: [4, 3, 2]), queryParams observable or queryParamMap observable is not getting triggered.

Steps to reproduce:

  1. Open https://stackblitz.com/edit/angular-lwjmzk
  2. Open console (dev console) in stackblitz.
  3. Click on link "Go to parent component with items 4, 4, 2". In console will be displayed message from queryParams and queryParamMap observable handlers.
  4. Now click on link "Go to parent component with items 4, 3, 2". Now nothing will be printed in console.
  5. But reverse will work fine

Expected: Should trigger queryParams observable handler whenever any value changes in query param

🔬 Minimal Reproduction

https://stackblitz.com/edit/angular-lwjmzk

🌍 Your Environment

Angular Version:



     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 9.1.9
Node: 12.1.0
OS: darwin x64

Angular: 9.1.11
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.901.9
@angular-devkit/build-angular     0.901.9
@angular-devkit/build-optimizer   0.901.9
@angular-devkit/build-webpack     0.901.9
@angular-devkit/core              9.1.9
@angular-devkit/schematics        9.1.9
@angular/cdk                      9.2.4
@angular/cli                      9.1.9
@angular/material                 9.2.4
@ngtools/webpack                  9.1.9
@schematics/angular               9.1.9
@schematics/update                0.901.9
rxjs                              6.5.5
typescript                        3.8.3
webpack                           4.42.0



Anything else relevant?

@ngbot ngbot bot added this to the needsTriage milestone Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.
X Tutup