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: (core) Introduce change detection strategy OnPush #1500

Merged
merged 7 commits into from
Oct 31, 2019

Conversation

JKMarkowski
Copy link
Contributor

@JKMarkowski JKMarkowski commented Oct 29, 2019

Please provide a link to the associated issue.

fixes: #780
fixes: #1399

Please provide a brief summary of this pull request.

There is added OnPush change detection strategy. It will cause great performance improvement.
I had to add 2 rxjs subjects for i18n services on calendar, to trigger change detection.

If this is a new feature, have you updated the documentation?

@JKMarkowski JKMarkowski force-pushed the fix/#780-detection-strategy-onpush branch from 4f13e6d to 78bc46e Compare October 29, 2019 10:04
@netlify
Copy link

netlify bot commented Oct 29, 2019

Deploy preview for fundamental-ngx ready!

Built with commit 4f13e6d

https://deploy-preview-1500--fundamental-ngx.netlify.com

@JKMarkowski JKMarkowski force-pushed the fix/#780-detection-strategy-onpush branch from 78bc46e to 6d650b2 Compare October 29, 2019 10:12
@netlify
Copy link

netlify bot commented Oct 29, 2019

Deploy preview for fundamental-ngx ready!

Built with commit 78bc46e

https://deploy-preview-1500--fundamental-ngx.netlify.com

@netlify
Copy link

netlify bot commented Oct 29, 2019

Deploy preview for fundamental-ngx ready!

Built with commit b6660bf

https://deploy-preview-1500--fundamental-ngx.netlify.com

@JKMarkowski JKMarkowski changed the title fix: Introduce change detection strategy OnPush fix: (core) Introduce change detection strategy OnPush Oct 29, 2019
@JKMarkowski JKMarkowski added the core Core library specific issues label Oct 29, 2019
@JKMarkowski JKMarkowski force-pushed the fix/#780-detection-strategy-onpush branch from ed2dbd7 to c4b444a Compare October 29, 2019 11:43
@droshev droshev added this to In progress in Development via automation Oct 29, 2019
@droshev droshev added this to the sprint 23 - Melisandre milestone Oct 29, 2019
@JKMarkowski JKMarkowski force-pushed the fix/#780-detection-strategy-onpush branch from c4b444a to e6ff963 Compare October 29, 2019 12:01
@JKMarkowski JKMarkowski force-pushed the fix/#780-detection-strategy-onpush branch from e6ff963 to c6a6dcf Compare October 29, 2019 12:12
this.calendarI18nLabels.labelsChange
.pipe(takeUntil(this.onDestroy$))
.subscribe(() => this.changeDetRef.markForCheck())
;
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider merging these observables to avoid repeated code

Development automation moved this from In progress to Reviewer approved Oct 30, 2019
@JKMarkowski JKMarkowski merged commit 4a9091f into master Oct 31, 2019
Development automation moved this from Reviewer approved to Done Oct 31, 2019
@JKMarkowski JKMarkowski deleted the fix/#780-detection-strategy-onpush branch October 31, 2019 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core library specific issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

performance issues in Fundamental NGX in angular 8/9 Adopt OnPush change detection strategy
3 participants