Skip to content

fix: remove redundant unsubscribeFromChannels on component destroy to align with edge signal refactor#3242

Merged
sfeilmeier merged 1 commit intoOpenEMS:developfrom
girasolenergy:UI_fix_07
Aug 25, 2025
Merged

fix: remove redundant unsubscribeFromChannels on component destroy to align with edge signal refactor#3242
sfeilmeier merged 1 commit intoOpenEMS:developfrom
girasolenergy:UI_fix_07

Conversation

@Jasonlee6789
Copy link
Copy Markdown
Contributor

Description

This PR change removes the call to this.edge.unsubscribeFromChannels() in AbstractFlatWidgetLine's ngOnDestroy() method.

Reason

OpenEMS has refactored Edge into a Signal-based global state (Service.currentEdge) after 202504 version edge signal refactor.
Components are now pure consumers of edge Signals, without managing channel lifecycle.
Prevents premature unsubscription leading to data loss and inconsistent UI state.

How to reproduce the Error?

Use OpenEMS UI version 2025.4.0 or later.

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #3242      +/-   ##
=============================================
+ Coverage      59.38%   59.39%   +0.02%     
  Complexity       139      139              
=============================================
  Files           2683     2683              
  Lines         116650   116648       -2     
  Branches        8639     8638       -1     
=============================================
+ Hits           69256    69267      +11     
+ Misses         44780    44769      -11     
+ Partials        2614     2612       -2     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lukasrgr lukasrgr requested a review from sfeilmeier August 25, 2025 14:40
@sfeilmeier sfeilmeier merged commit f7535ec into OpenEMS:develop Aug 25, 2025
7 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.

3 participants