Skip to content

abstract-control (angular) state subscription is not cleared #2354

@Ketec

Description

@Ketec

Describe the bug

https://github.com/eclipsesource/jsonforms/blob/master/packages/angular/src/library/abstract-control.ts
ngOnDestroy does unsubscribe, but this.jsonFormsService.$state.subscribe is never actually assigned to the variable.

So every schema change adds new subscriptions and old ones still remain active and trigger.

Expected behavior

removed controls are unsubscribed

Steps to reproduce the issue

Screenshots

No response

Which Version of JSON Forms are you using?

3.3.0

Framework

Angular

RendererSet

Other (please specify in the Additional context field)

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions