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(angular): unsubscribe from jsonForm state subscription #2377

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

LukasBoll
Copy link
Contributor

Previously, the subscription to the jsonForm state in Angular was never unsubscribed. With this commit, all subscriptions will be unsubscribed when the component is destroyed.

Closes #2354

Previously, the subscription to the jsonForm state in Angular was never unsubscribed.
With this commit, all subscriptions will be unsubscribed when the component is destroyed.

Closes eclipsesource#2354
Copy link

netlify bot commented Sep 15, 2024

Deploy Preview for jsonforms-examples ready!

Name Link
🔨 Latest commit 481c14d
🔍 Latest deploy log https://app.netlify.com/sites/jsonforms-examples/deploys/67079601a9b1cf0008cd0653
😎 Deploy Preview https://deploy-preview-2377--jsonforms-examples.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@coveralls
Copy link

coveralls commented Sep 15, 2024

Coverage Status

coverage: 81.728% (-0.005%) from 81.733%
when pulling 481c14d on LukasBoll:fix/angular_unsubscribe
into 8c4b2f0 on eclipsesource:master.

@sdirix sdirix requested review from lucas-koehler and removed request for lucas-koehler October 9, 2024 09:39
Copy link
Contributor

@lucas-koehler lucas-koehler left a comment

Choose a reason for hiding this comment

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

Thanks for this PR @LukasBoll . The changes already look pretty good to me ✨
I have just two minor suggestions inline to make the base renderer's subscriptions protected.

packages/angular/src/library/base.renderer.ts Outdated Show resolved Hide resolved
packages/angular/src/library/base.renderer.ts Outdated Show resolved Hide resolved
@lucas-koehler lucas-koehler removed the request for review from sdirix October 10, 2024 08:53
@lucas-koehler lucas-koehler merged commit 1feaf0b into eclipsesource:master Oct 10, 2024
8 checks passed
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.

abstract-control (angular) state subscription is not cleared
3 participants