Skip to content

chore: update docs app to Angular v15 - #7238

Closed
jakovljevic-mladen wants to merge 3 commits into
ReactiveX:masterfrom
jakovljevic-mladen:update_docs_app_to_latest_angular
Closed

chore: update docs app to Angular v15#7238
jakovljevic-mladen wants to merge 3 commits into
ReactiveX:masterfrom
jakovljevic-mladen:update_docs_app_to_latest_angular

Conversation

@jakovljevic-mladen

Copy link
Copy Markdown
Member

Description:
Update docs app to Angular v15

Related issue (if exists):
None

Comment on lines +31 to 33
this.location.subscribe((state) => {
return this.urlSubject.next(state.url || '');
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
this.location.subscribe((state) => {
return this.urlSubject.next(state.url || '');
});
this.location.subscribe((state) => return this.urlSubject.next(state.url ?? ''));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LcsGa Did you mean this?

Suggested change
this.location.subscribe((state) => {
return this.urlSubject.next(state.url || '');
});
this.location.subscribe((state) => this.urlSubject.next(state.url || ''));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh indeed! Forget to remove the return keyboard plus I would have used the nullish coalescing operator ?? instead of ||

const value = params[key];
return (value === undefined) ? acc :
acc += (acc ? '&' : '?') + `${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
return value === undefined ? acc : (acc += (acc ? '&' : '?') + `${encodeURIComponent(key)}=${encodeURIComponent(value)}`);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return value === undefined ? acc : (acc += (acc ? '&' : '?') + `${encodeURIComponent(key)}=${encodeURIComponent(value)}`);
return value === undefined ? acc : (acc + (acc ? '&' : '?') + `${encodeURIComponent(key)}=${encodeURIComponent(value)}`);

= is not needed since you already return the result which will be the new acc

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which needs to become new acc, therefore it is needed 🙂

Anyways, I didn't change anything in this PR, a lot of fixes here are just Prettier uglifying things (I don't like Prettier), therefore, if it worked before, I wouldn't change it now.

@benlesh

benlesh commented Jul 22, 2026

Copy link
Copy Markdown
Member

Hi @jakovljevic-mladen — thank you for the time, care, and thoughtfulness you put into this pull request. I’m sorry we weren’t able to respond in a reasonable timeframe. Since the codebase and surrounding context have moved on and this hasn’t seen recent activity, I’m going to close it for now. That’s a reflection of our delayed triage, not a lack of appreciation for your contribution. If the change is still relevant, please feel welcome to open a fresh pull request against the current codebase. Thank you again for contributing to RxJS and for your patience.

— Ben

@benlesh benlesh closed this Jul 22, 2026
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.

4 participants