Skip to content

Improve signals readability and ergonomics#39

Merged
GuilhermeF03 merged 4 commits into
mainfrom
refactor/signals-readability-and-ergonomics
Mar 11, 2026
Merged

Improve signals readability and ergonomics#39
GuilhermeF03 merged 4 commits into
mainfrom
refactor/signals-readability-and-ergonomics

Conversation

@GuilhermeF03

Copy link
Copy Markdown
Member

Summary
In order to improve signals readability and expose ergonomics, we attempted to redesign the Signals API

Changes

  • Added .update method that accepts a handler where the first arg is the current value(similar to Angular and React)
  • Operator overload proved un-maintainable long-term, so R/W through .value field were kept
  • Package reactive was re-named flow, as contexts didn't really match the package name.

Related Issues
Closes #34

Type of Change
Refactor

Checklist

  • Code follows project style
  • Self-reviewed
  • Tests added/updated (if applicable)
  • Docs updated (if applicable)

Notes for Reviewers

Makes more sense, as contexts aren't really reactive, but flow state, as do events and signals
* Operation overload would need to be explicit, so we still need to acess and modify signals through .value
Not really useful right now, will be re-analyzed in future versions
@GuilhermeF03 GuilhermeF03 added this to the 0.1.0 - Headless Version milestone Mar 11, 2026
@GuilhermeF03 GuilhermeF03 self-assigned this Mar 11, 2026
@GuilhermeF03 GuilhermeF03 added enhancement New feature or request pull-request labels Mar 11, 2026
@GuilhermeF03 GuilhermeF03 linked an issue Mar 11, 2026 that may be closed by this pull request
@github-project-automation github-project-automation Bot moved this to Backlog in canopy-tasks Mar 11, 2026
@GuilhermeF03 GuilhermeF03 changed the title Refactor/signals readability and ergonomics Refactor - improve signals readability and ergonomics Mar 11, 2026
@GuilhermeF03 GuilhermeF03 merged commit 1a2a06d into main Mar 11, 2026
5 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in canopy-tasks Mar 11, 2026
@GuilhermeF03 GuilhermeF03 deleted the refactor/signals-readability-and-ergonomics branch March 11, 2026 14:48
@GuilhermeF03 GuilhermeF03 changed the title Refactor - improve signals readability and ergonomics Improve signals readability and ergonomics Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Refactor: Update Signals readibility and ergonomics

1 participant