Skip to content

refactor: drop signal writes effect #455

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

Merged
merged 1 commit into from
Jan 19, 2025

Conversation

Harpush
Copy link
Collaborator

@Harpush Harpush commented Sep 17, 2024

Drop the validation effect that also updates internal sizes (with allow signal writes) and use computed instead as per the official angular recommendation.

The signal flow is now:

  1. SplitArea has visible and size
  2. Split creates _visibleAreas based on SplitArea visible
  3. Split creates _alignedVisibleAreasSizes based on _visibleAreas and SplitArea size with validation alignments
  4. SplitArea _internalSize is based on _alignedVisibleAreasSizes
  5. _internalSize is the actual size anything else should use (except validations and normalizations)

@Jefiozie
Copy link
Member

hi @Harpush is this ready for review?

@Jefiozie
Copy link
Member

Hi @Harpush could you resolve the conflict? I would like to add this to the beta release of 19

@Harpush Harpush force-pushed the no-signal-writes-effect branch from 8396f22 to 23e36be Compare January 18, 2025 12:26
@Harpush Harpush force-pushed the no-signal-writes-effect branch from 23e36be to afd4840 Compare January 18, 2025 12:49
@Harpush Harpush marked this pull request as ready for review January 18, 2025 12:49
@Harpush Harpush requested a review from SanderElias January 18, 2025 12:49
@Harpush
Copy link
Collaborator Author

Harpush commented Jan 18, 2025

@Jefiozie @SanderElias Resolved conflicts, changed a bit of the code and now it is ready for review

Copy link
Member

@Jefiozie Jefiozie left a comment

Choose a reason for hiding this comment

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

LGMT, will update v19 branch with these changes

@Jefiozie Jefiozie merged commit f2219e8 into angular-split:main Jan 19, 2025
5 checks passed
@Harpush Harpush deleted the no-signal-writes-effect branch January 19, 2025 18:56
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